File tree Expand file tree Collapse file tree
track_memory_allocations/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,11 +19,8 @@ fn bench_codegen(criterion: &mut Criterion) {
1919 assert ! ( parser_ret. errors. is_empty( ) ) ;
2020 let mut program = parser_ret. program ;
2121
22- let scoping = SemanticBuilder :: new ( )
23- . with_enum_eval ( true )
24- . build ( & program)
25- . semantic
26- . into_scoping ( ) ;
22+ let scoping =
23+ SemanticBuilder :: new ( ) . with_enum_eval ( true ) . build ( & program) . semantic . into_scoping ( ) ;
2724
2825 let transform_options = TransformOptions :: enable_all ( ) ;
2926 let transformer_ret =
Original file line number Diff line number Diff line change @@ -153,7 +153,11 @@ pub fn run() -> Result<(), io::Error> {
153153 assert ! ( parsed. errors. is_empty( ) ) ;
154154
155155 // Transform TypeScript to ESNext before minifying (minifier only works on esnext)
156- let scoping = SemanticBuilder :: new ( ) . with_enum_eval ( true ) . build ( & parsed. program ) . semantic . into_scoping ( ) ;
156+ let scoping = SemanticBuilder :: new ( )
157+ . with_enum_eval ( true )
158+ . build ( & parsed. program )
159+ . semantic
160+ . into_scoping ( ) ;
157161 let transform_options = TransformOptions :: from_target ( "esnext" ) . unwrap ( ) ;
158162 let _ =
159163 Transformer :: new ( & allocator, std:: path:: Path :: new ( & file. file_name ) , & transform_options)
@@ -194,7 +198,11 @@ pub fn run() -> Result<(), io::Error> {
194198 ) ) ;
195199
196200 let ( scoping, semantic_stats) = record_stats_in ( & allocator, || {
197- SemanticBuilder :: new ( ) . with_enum_eval ( true ) . build ( & parsed. program ) . semantic . into_scoping ( )
201+ SemanticBuilder :: new ( )
202+ . with_enum_eval ( true )
203+ . build ( & parsed. program )
204+ . semantic
205+ . into_scoping ( )
198206 } ) ;
199207
200208 semantic_out. push_str ( & format_table_row (
You can’t perform that action at this time.
0 commit comments