-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(es/codegen): Emit leading comments for
ExprStmt
(#7916)
- Loading branch information
1 parent
3210556
commit 2da5895
Showing
16 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export var webpackJsonpCallback = function(parentChunkLoadingFunction, data) { | ||
/******/ var runtime = data[2]; | ||
//...... | ||
runtime && runtime(__webpack_require__); | ||
// return result | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
crates/swc/tests/tsc-references/parserRealSource8.2.minified.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2da5895
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/bugs-1
289779
ns/iter (± 11558
)284016
ns/iter (± 6804
)1.02
es/full/minify/libraries/antd
1313107827
ns/iter (± 9704007
)1316220764
ns/iter (± 19121501
)1.00
es/full/minify/libraries/d3
274542639
ns/iter (± 3603876
)278088805
ns/iter (± 4441309
)0.99
es/full/minify/libraries/echarts
1074444775
ns/iter (± 10541381
)1067285415
ns/iter (± 9908038
)1.01
es/full/minify/libraries/jquery
83565230
ns/iter (± 356159
)84003552
ns/iter (± 264526
)0.99
es/full/minify/libraries/lodash
96443383
ns/iter (± 307018
)97654934
ns/iter (± 1189975
)0.99
es/full/minify/libraries/moment
49585171
ns/iter (± 352579
)49616505
ns/iter (± 328700
)1.00
es/full/minify/libraries/react
17836455
ns/iter (± 141309
)17861425
ns/iter (± 149768
)1.00
es/full/minify/libraries/terser
221489095
ns/iter (± 1878049
)219465151
ns/iter (± 4676018
)1.01
es/full/minify/libraries/three
405249100
ns/iter (± 4843695
)387023054
ns/iter (± 3953134
)1.05
es/full/minify/libraries/typescript
2656317362
ns/iter (± 19187954
)2665184416
ns/iter (± 17238354
)1.00
es/full/minify/libraries/victory
614757312
ns/iter (± 13202103
)572237756
ns/iter (± 7341492
)1.07
es/full/minify/libraries/vue
119395257
ns/iter (± 555424
)119172757
ns/iter (± 1071092
)1.00
es/full/codegen/es3
34178
ns/iter (± 207
)34291
ns/iter (± 70
)1.00
es/full/codegen/es5
34099
ns/iter (± 148
)34389
ns/iter (± 58
)0.99
es/full/codegen/es2015
34075
ns/iter (± 127
)34292
ns/iter (± 56
)0.99
es/full/codegen/es2016
34031
ns/iter (± 187
)34296
ns/iter (± 51
)0.99
es/full/codegen/es2017
34037
ns/iter (± 215
)34288
ns/iter (± 57
)0.99
es/full/codegen/es2018
34107
ns/iter (± 177
)34296
ns/iter (± 51
)0.99
es/full/codegen/es2019
34042
ns/iter (± 121
)34294
ns/iter (± 61
)0.99
es/full/codegen/es2020
33963
ns/iter (± 201
)34175
ns/iter (± 64
)0.99
es/full/all/es3
169793034
ns/iter (± 1237967
)170480542
ns/iter (± 1223997
)1.00
es/full/all/es5
162327010
ns/iter (± 1024317
)161787265
ns/iter (± 805475
)1.00
es/full/all/es2015
121460025
ns/iter (± 702792
)121620361
ns/iter (± 997922
)1.00
es/full/all/es2016
120568911
ns/iter (± 645716
)120606076
ns/iter (± 1146790
)1.00
es/full/all/es2017
119968145
ns/iter (± 536006
)119502037
ns/iter (± 538631
)1.00
es/full/all/es2018
117981353
ns/iter (± 715177
)118101856
ns/iter (± 738267
)1.00
es/full/all/es2019
117903291
ns/iter (± 824520
)117038566
ns/iter (± 926089
)1.01
es/full/all/es2020
112645356
ns/iter (± 492260
)113390362
ns/iter (± 519013
)0.99
es/full/parser
489277
ns/iter (± 5963
)500860
ns/iter (± 6362
)0.98
es/full/base/fixer
18366
ns/iter (± 524
)20584
ns/iter (± 128
)0.89
es/full/base/resolver_and_hygiene
81057
ns/iter (± 170
)80509
ns/iter (± 771
)1.01
serialization of serde
304
ns/iter (± 0
)292
ns/iter (± 0
)1.04
css/minify/libraries/bootstrap
28796306
ns/iter (± 66100
)28295853
ns/iter (± 187404
)1.02
css/visitor/compare/clone
1688595
ns/iter (± 9332
)1675531
ns/iter (± 31181
)1.01
css/visitor/compare/visit_mut_span
1797549
ns/iter (± 7049
)1792876
ns/iter (± 7335
)1.00
css/visitor/compare/visit_mut_span_panic
1866046
ns/iter (± 4885
)1872325
ns/iter (± 18056
)1.00
css/visitor/compare/fold_span
2607260
ns/iter (± 29289
)2589902
ns/iter (± 13051
)1.01
css/visitor/compare/fold_span_panic
2795141
ns/iter (± 9230
)2776744
ns/iter (± 33550
)1.01
css/lexer/bootstrap_5_1_3
4490938
ns/iter (± 11096
)4436807
ns/iter (± 18613
)1.01
css/lexer/foundation_6_7_4
3756837
ns/iter (± 3635
)3723153
ns/iter (± 1600
)1.01
css/lexer/tailwind_3_1_1
716059
ns/iter (± 1371
)707074
ns/iter (± 398
)1.01
css/parser/bootstrap_5_1_3
19214648
ns/iter (± 32212
)18995753
ns/iter (± 127754
)1.01
css/parser/foundation_6_7_4
15240702
ns/iter (± 96167
)15215279
ns/iter (± 42140
)1.00
css/parser/tailwind_3_1_1
2927927
ns/iter (± 5766
)2941716
ns/iter (± 2836
)1.00
es/codegen/colors
736629
ns/iter (± 406004
)737811
ns/iter (± 403456
)1.00
es/codegen/large
2884724
ns/iter (± 1535627
)3162189
ns/iter (± 1679780
)0.91
es/codegen/with-parser/colors
45487
ns/iter (± 471
)45611
ns/iter (± 578
)1.00
es/codegen/with-parser/large
491120
ns/iter (± 966
)486716
ns/iter (± 903
)1.01
es/minify/libraries/antd
1172543111
ns/iter (± 13796156
)1164093851
ns/iter (± 17997715
)1.01
es/minify/libraries/d3
240416537
ns/iter (± 3640884
)240159611
ns/iter (± 1794538
)1.00
es/minify/libraries/echarts
901530260
ns/iter (± 6919292
)924566326
ns/iter (± 17232739
)0.98
es/minify/libraries/jquery
72782849
ns/iter (± 107685
)72977576
ns/iter (± 201554
)1.00
es/minify/libraries/lodash
86810795
ns/iter (± 396319
)87033950
ns/iter (± 515385
)1.00
es/minify/libraries/moment
43287421
ns/iter (± 63546
)43438387
ns/iter (± 180178
)1.00
es/minify/libraries/react
15979196
ns/iter (± 48259
)15933941
ns/iter (± 65751
)1.00
es/minify/libraries/terser
185448834
ns/iter (± 1210790
)188461928
ns/iter (± 3070853
)0.98
es/minify/libraries/three
321798988
ns/iter (± 1287810
)323454261
ns/iter (± 2529282
)0.99
es/minify/libraries/typescript
2242056923
ns/iter (± 17543023
)2276968302
ns/iter (± 19646646
)0.98
es/minify/libraries/victory
475511419
ns/iter (± 4618065
)480564388
ns/iter (± 6648337
)0.99
es/minify/libraries/vue
105833893
ns/iter (± 415943
)106313387
ns/iter (± 735255
)1.00
es/visitor/compare/clone
1933229
ns/iter (± 4896
)1941254
ns/iter (± 2873
)1.00
es/visitor/compare/visit_mut_span
2277994
ns/iter (± 13410
)2287863
ns/iter (± 7683
)1.00
es/visitor/compare/visit_mut_span_panic
2310515
ns/iter (± 3702
)2324843
ns/iter (± 2816
)0.99
es/visitor/compare/fold_span
3352194
ns/iter (± 3983
)3377776
ns/iter (± 17197
)0.99
es/visitor/compare/fold_span_panic
3507230
ns/iter (± 8037
)3489558
ns/iter (± 6969
)1.01
es/lexer/colors
12988
ns/iter (± 73
)13029
ns/iter (± 43
)1.00
es/lexer/angular
6138999
ns/iter (± 5784
)6063492
ns/iter (± 16677
)1.01
es/lexer/backbone
778424
ns/iter (± 907
)788829
ns/iter (± 4393
)0.99
es/lexer/jquery
4480417
ns/iter (± 10549
)4474719
ns/iter (± 11288
)1.00
es/lexer/jquery mobile
6831364
ns/iter (± 8381
)6922718
ns/iter (± 42960
)0.99
es/lexer/mootools
3536421
ns/iter (± 4407
)3519406
ns/iter (± 9592
)1.00
es/lexer/underscore
658029
ns/iter (± 424
)654900
ns/iter (± 1363
)1.00
es/lexer/three
21447347
ns/iter (± 21301
)21196250
ns/iter (± 41334
)1.01
es/lexer/yui
3816745
ns/iter (± 5264
)3783823
ns/iter (± 3184
)1.01
es/parser/colors
27291
ns/iter (± 82
)28291
ns/iter (± 91
)0.96
es/parser/angular
13548271
ns/iter (± 54625
)13621805
ns/iter (± 91167
)0.99
es/parser/backbone
1984874
ns/iter (± 8195
)1983677
ns/iter (± 9037
)1.00
es/parser/jquery
10815709
ns/iter (± 40011
)10880548
ns/iter (± 70520
)0.99
es/parser/jquery mobile
16612289
ns/iter (± 56654
)16661017
ns/iter (± 173598
)1.00
es/parser/mootools
8319129
ns/iter (± 20438
)8356641
ns/iter (± 24815
)1.00
es/parser/underscore
1707813
ns/iter (± 10212
)1711567
ns/iter (± 8641
)1.00
es/parser/three
46764022
ns/iter (± 552162
)47204900
ns/iter (± 505415
)0.99
es/parser/yui
8220966
ns/iter (± 41438
)8288570
ns/iter (± 58025
)0.99
es/preset-env/usage/builtin_type
135688
ns/iter (± 32636
)135793
ns/iter (± 31720
)1.00
es/preset-env/usage/property
16391
ns/iter (± 77
)17232
ns/iter (± 40
)0.95
es/resolver/typescript
90118602
ns/iter (± 625688
)90550822
ns/iter (± 710154
)1.00
es/fixer/typescript
63422190
ns/iter (± 340730
)64759963
ns/iter (± 896710
)0.98
es/hygiene/typescript
130994580
ns/iter (± 2545233
)132069356
ns/iter (± 2128727
)0.99
es/resolver_with_hygiene/typescript
255011950
ns/iter (± 2853776
)244278934
ns/iter (± 1588661
)1.04
es/visitor/base-perf/module_clone
58887
ns/iter (± 321
)58749
ns/iter (± 229
)1.00
es/visitor/base-perf/fold_empty
63035
ns/iter (± 633
)63625
ns/iter (± 337
)0.99
es/visitor/base-perf/fold_noop_impl_all
63356
ns/iter (± 492
)63135
ns/iter (± 270
)1.00
es/visitor/base-perf/fold_noop_impl_vec
63198
ns/iter (± 221
)63398
ns/iter (± 847
)1.00
es/visitor/base-perf/boxing_boxed_clone
56
ns/iter (± 0
)57
ns/iter (± 0
)0.98
es/visitor/base-perf/boxing_unboxed_clone
40
ns/iter (± 0
)40
ns/iter (± 0
)1
es/visitor/base-perf/boxing_boxed
109
ns/iter (± 0
)109
ns/iter (± 0
)1
es/visitor/base-perf/boxing_unboxed
78
ns/iter (± 0
)79
ns/iter (± 0
)0.99
es/visitor/base-perf/visit_empty
0
ns/iter (± 0
)0
ns/iter (± 0
)NaN
es/visitor/base-perf/visit_contains_this
2517
ns/iter (± 8
)2573
ns/iter (± 45
)0.98
es/base/parallel/resolver/typescript
4159058026
ns/iter (± 168275065
)4467338973
ns/iter (± 229527541
)0.93
es/base/parallel/hygiene/typescript
1408137381
ns/iter (± 18216952
)1420449524
ns/iter (± 27225685
)0.99
misc/visitors/time-complexity/time 5
120
ns/iter (± 3
)119
ns/iter (± 6
)1.01
misc/visitors/time-complexity/time 10
388
ns/iter (± 7
)306
ns/iter (± 2
)1.27
misc/visitors/time-complexity/time 15
508
ns/iter (± 0
)591
ns/iter (± 24
)0.86
misc/visitors/time-complexity/time 20
1066
ns/iter (± 39
)1071
ns/iter (± 48
)1.00
misc/visitors/time-complexity/time 40
4134
ns/iter (± 296
)4200
ns/iter (± 2
)0.98
misc/visitors/time-complexity/time 60
7421
ns/iter (± 47
)8852
ns/iter (± 6
)0.84
es/full-target/es2016
229148
ns/iter (± 358
)230190
ns/iter (± 871
)1.00
es/full-target/es2017
218530
ns/iter (± 893
)220799
ns/iter (± 1012
)0.99
es/full-target/es2018
206553
ns/iter (± 620
)208796
ns/iter (± 1257
)0.99
es2020_nullish_coalescing
69760
ns/iter (± 455
)71417
ns/iter (± 538
)0.98
es2020_optional_chaining
81210
ns/iter (± 289
)81363
ns/iter (± 407
)1.00
es2022_class_properties
113942
ns/iter (± 493
)115210
ns/iter (± 425
)0.99
es2018_object_rest_spread
74333
ns/iter (± 195
)76057
ns/iter (± 266
)0.98
es2019_optional_catch_binding
63937
ns/iter (± 322
)64339
ns/iter (± 248
)0.99
es2017_async_to_generator
64268
ns/iter (± 236
)65660
ns/iter (± 216
)0.98
es2016_exponentiation
68151
ns/iter (± 222
)69570
ns/iter (± 213
)0.98
es2015_arrow
71796
ns/iter (± 327
)72826
ns/iter (± 143
)0.99
es2015_block_scoped_fn
68239
ns/iter (± 211
)71212
ns/iter (± 191
)0.96
es2015_block_scoping
120438
ns/iter (± 379
)124225
ns/iter (± 452
)0.97
This comment was automatically generated by workflow using github-action-benchmark.