Skip to content

Commit e2d905d

Browse files
committed
Auto merge of #14361 - Veykril:if-then-parse, r=Veykril
fix: Fix then block accessor for ast if expression not ignoring attributes Fixes #14360
2 parents adbda94 + b700d3f commit e2d905d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/syntax/src/ast/expr_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl ast::IfExpr {
6464
}
6565

6666
fn children_after_condition<N: AstNode>(&self) -> impl Iterator<Item = N> {
67-
self.syntax().children().skip(1).filter_map(N::cast)
67+
self.syntax().children().filter_map(N::cast).skip(1)
6868
}
6969
}
7070

0 commit comments

Comments
 (0)