Skip to content

Commit ac7fb70

Browse files
ankddevlpil
authored andcommitted
fix: arguments is field and not method :)
1 parent 9f95004 commit ac7fb70

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler-core/src/language_server/code_action.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,10 @@ impl<'ast> ast::visit::Visit<'ast> for AnnotateTopLevelDefinitions<'_> {
14301430

14311431
fn visit_typed_function(&mut self, fun: &'ast ast::TypedFunction) {
14321432
// Don't annotate already annotated arguments
1433-
let arguments_to_annotate = fun.arguments().iter().filter(|argument| argument.annotation.is_none());
1433+
let arguments_to_annotate = fun
1434+
.arguments
1435+
.iter()
1436+
.filter(|argument| argument.annotation.is_none());
14341437
let return_annotation_needed = fun.return_annotation.is_none();
14351438

14361439
if arguments_to_annotate.is_empty() && !return_annotation_needed {

0 commit comments

Comments
 (0)