Skip to content

Commit 9518e93

Browse files
committed
Use dedicated iterator
1 parent 804f806 commit 9518e93

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/ark/src/lsp/symbols.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,7 @@ fn collect_call_arguments(
290290
};
291291

292292
let mut cursor = node.walk();
293-
for arg in arguments.children(&mut cursor) {
294-
if arg.kind() != "argument" {
295-
continue;
296-
}
297-
293+
for arg in arguments.children_by_field_name("argument", &mut cursor) {
298294
let Some(arg_value) = arg.child_by_field_name("value") else {
299295
continue;
300296
};

0 commit comments

Comments
 (0)