Skip to content

Commit 60a5cbd

Browse files
committed
fix: arguments is field and not method :)
1 parent bbe609b commit 60a5cbd

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
@@ -1429,7 +1429,10 @@ impl<'ast> ast::visit::Visit<'ast> for AnnotateTopLevelDefinitions<'_> {
14291429

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

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

0 commit comments

Comments
 (0)