Skip to content

Commit e924e22

Browse files
ankddevgiacomocavalieri
authored andcommitted
refactor: don't visit entire AST of function
Co-authored-by: Giacomo Cavalieri <[email protected]>
1 parent abc26b4 commit e924e22

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler-core/src/language_server/code_action.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,6 @@ impl<'ast> ast::visit::Visit<'ast> for AnnotateTopLevelDefinitions<'_> {
14321432
let mut printer = Printer::new_without_type_variables(&self.module.ast.names);
14331433
collect_type_variables(&mut printer, fun);
14341434

1435-
ast::visit::visit_typed_function(self, fun);
14361435

14371436
let code_action_range = self.edits.src_span_to_lsp_range(
14381437
fun.body_start

0 commit comments

Comments
 (0)