Skip to content

Commit 63919e5

Browse files
committed
u
1 parent a6c50ff commit 63919e5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ pub mod oxc {
2323
let source_type = SourceType::from_path(path).unwrap();
2424
let ret = Parser::new(&allocator, source_text, source_type).parse();
2525
let mut program = ret.program;
26-
let (symbols, scopes) = SemanticBuilder::new()
26+
let scoping = SemanticBuilder::new()
2727
.build(&program)
2828
.semantic
29-
.into_symbol_table_and_scope_tree();
30-
let ret = Transformer::new(&allocator, path, options).build_with_symbols_and_scopes(
31-
symbols,
32-
scopes,
33-
&mut program,
34-
);
29+
.into_scoping();
30+
let ret =
31+
Transformer::new(&allocator, path, options).build_with_scoping(scoping, &mut program);
3532
assert!(ret.errors.is_empty());
3633
let printed = CodeGenerator::new().build(&program).code;
3734

0 commit comments

Comments
 (0)