| ... | ... | @@ -3219,9 +3219,7 @@ pub fn getAstTree(mod: *Module, root_scope: *Scope.File) !*const ast.Tree { |
| 3219 | 3219 | |
| 3220 | 3220 | const source = try root_scope.getSource(mod); |
| 3221 | 3221 | |
| 3222 | | var keep_tree = false; |
| 3223 | 3222 | root_scope.tree = try std.zig.parse(mod.gpa, source); |
| 3224 | | defer if (!keep_tree) root_scope.tree.deinit(mod.gpa); |
| 3225 | 3223 | |
| 3226 | 3224 | const tree = &root_scope.tree; |
| 3227 | 3225 | |
| ... | ... | @@ -3249,7 +3247,6 @@ pub fn getAstTree(mod: *Module, root_scope: *Scope.File) !*const ast.Tree { |
| 3249 | 3247 | } |
| 3250 | 3248 | |
| 3251 | 3249 | root_scope.status = .loaded_success; |
| 3252 | | keep_tree = true; |
| 3253 | 3250 | |
| 3254 | 3251 | return tree; |
| 3255 | 3252 | }, |