File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 60
60
//! scheme could very easily be derailed entirely by a single mistake, so in my opinion, it's unwise
61
61
//! to edit by hand.
62
62
63
- use std:: path:: PathBuf ;
64
-
65
63
use oxc_allocator:: Allocator ;
66
64
use oxc_ast:: ast:: Program ;
67
65
use oxc_semantic:: SemanticBuilder ;
@@ -147,11 +145,7 @@ pub fn traverse_mut<'a, Tr: Traverse<'a>>(
147
145
source_type : SourceType ,
148
146
allocator : & ' a Allocator ,
149
147
) {
150
- let semantic = SemanticBuilder :: new ( source_text, source_type)
151
- . with_check_syntax_error ( true )
152
- . build_module_record ( PathBuf :: default ( ) , program)
153
- . build ( program)
154
- . semantic ;
148
+ let semantic = SemanticBuilder :: new ( source_text, source_type) . build ( program) . semantic ;
155
149
let ( symbols, scopes) = semantic. into_symbol_table_and_scope_tree ( ) ;
156
150
157
151
let mut ctx = TraverseCtx :: new ( scopes, symbols, allocator) ;
You can’t perform that action at this time.
0 commit comments