-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
123 changed files
with
1,239 additions
and
22 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
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
119 changes: 119 additions & 0 deletions
119
crates/swc_ecma_parser/tests/comments/exprs/array/blockStmt/input.js.span.swc-stderr
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 |
---|---|---|
@@ -0,0 +1,119 @@ | ||
|
||
x Module | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x ModuleItem | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x Stmt | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x ExprStmt | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x CallExpr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x Callee | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | React.useEffect(() => { | ||
: ^^^^^^^^^^^^^^^ | ||
2 | // @refresh reset | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | React.useEffect(() => { | ||
: ^^^^^^^^^^^^^^^ | ||
2 | // @refresh reset | ||
`---- | ||
|
||
x MemberExpr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | React.useEffect(() => { | ||
: ^^^^^^^^^^^^^^^ | ||
2 | // @refresh reset | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | React.useEffect(() => { | ||
: ^^^^^ | ||
2 | // @refresh reset | ||
`---- | ||
|
||
x Ident | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | React.useEffect(() => { | ||
: ^^^^^ | ||
2 | // @refresh reset | ||
`---- | ||
|
||
x Ident | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | React.useEffect(() => { | ||
: ^^^^^^^^^ | ||
2 | // @refresh reset | ||
`---- | ||
|
||
x ExprOrSpread | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x ArrowExpr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x BlockStmtOrExpr | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- | ||
|
||
x BlockStmt | ||
,-[$DIR/tests/comments/exprs/array/blockStmt/input.js:1:1] | ||
1 | ,-> React.useEffect(() => { | ||
2 | | // @refresh reset | ||
3 | `-> }); | ||
`---- |
102 changes: 102 additions & 0 deletions
102
crates/swc_ecma_parser/tests/comments/exprs/call/simple/input.js.span.swc-stderr
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 |
---|---|---|
@@ -0,0 +1,102 @@ | ||
|
||
x Module | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x ModuleItem | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x Stmt | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x ExprStmt | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x CallExpr | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
`---- | ||
|
||
x Callee | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^ | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^ | ||
`---- | ||
|
||
x Ident | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^^ | ||
`---- | ||
|
||
x ExprOrSpread | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- | ||
|
||
x Lit | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- | ||
|
||
x Number | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- | ||
|
||
x ExprOrSpread | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- | ||
|
||
x Expr | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- | ||
|
||
x Lit | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- | ||
|
||
x Number | ||
,-[$DIR/tests/comments/exprs/call/simple/input.js:1:1] | ||
1 | test(123/*post: 9*/, 456/*post: 10*/); | ||
: ^^^ | ||
`---- |
2 changes: 2 additions & 0 deletions
2
crates/swc_ecma_parser/tests/comments/exprs/paren-annotations/1/input.js
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const fnB = /*#__NO_SIDE_EFFECTS__*/ (args) => { | ||
} |
Oops, something went wrong.
7530e90
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
286968
ns/iter (± 13402
)297107
ns/iter (± 11940
)0.97
es/full/minify/libraries/antd
1341778784
ns/iter (± 34555597
)1431074246
ns/iter (± 13490364
)0.94
es/full/minify/libraries/d3
286306825
ns/iter (± 5170624
)297754693
ns/iter (± 2027376
)0.96
es/full/minify/libraries/echarts
1067359691
ns/iter (± 6750095
)1137309748
ns/iter (± 11617776
)0.94
es/full/minify/libraries/jquery
88372825
ns/iter (± 1481513
)89855860
ns/iter (± 304318
)0.98
es/full/minify/libraries/lodash
103991719
ns/iter (± 1009148
)105214814
ns/iter (± 304412
)0.99
es/full/minify/libraries/moment
52124565
ns/iter (± 525162
)53085664
ns/iter (± 173477
)0.98
es/full/minify/libraries/react
18704977
ns/iter (± 184640
)19208546
ns/iter (± 198529
)0.97
es/full/minify/libraries/terser
227235382
ns/iter (± 2340466
)243013842
ns/iter (± 2570998
)0.94
es/full/minify/libraries/three
399464002
ns/iter (± 6224476
)418576015
ns/iter (± 1855906
)0.95
es/full/minify/libraries/typescript
2680478939
ns/iter (± 12629551
)2845320183
ns/iter (± 17253380
)0.94
es/full/minify/libraries/victory
580038489
ns/iter (± 7410687
)607442306
ns/iter (± 4475575
)0.95
es/full/minify/libraries/vue
124713445
ns/iter (± 3522768
)127766413
ns/iter (± 912801
)0.98
es/full/codegen/es3
32617
ns/iter (± 364
)34635
ns/iter (± 63
)0.94
es/full/codegen/es5
33320
ns/iter (± 461
)34595
ns/iter (± 87
)0.96
es/full/codegen/es2015
32898
ns/iter (± 580
)34772
ns/iter (± 55
)0.95
es/full/codegen/es2016
32808
ns/iter (± 352
)34677
ns/iter (± 84
)0.95
es/full/codegen/es2017
32618
ns/iter (± 474
)34759
ns/iter (± 198
)0.94
es/full/codegen/es2018
32810
ns/iter (± 449
)34580
ns/iter (± 102
)0.95
es/full/codegen/es2019
32484
ns/iter (± 254
)34649
ns/iter (± 81
)0.94
es/full/codegen/es2020
32670
ns/iter (± 363
)34644
ns/iter (± 142
)0.94
es/full/all/es3
176786074
ns/iter (± 1902496
)180442764
ns/iter (± 1191743
)0.98
es/full/all/es5
169610556
ns/iter (± 2622552
)172418217
ns/iter (± 899735
)0.98
es/full/all/es2015
130014048
ns/iter (± 1460973
)129762794
ns/iter (± 1756143
)1.00
es/full/all/es2016
127266324
ns/iter (± 1828597
)129137328
ns/iter (± 1063927
)0.99
es/full/all/es2017
126088478
ns/iter (± 1377105
)127755795
ns/iter (± 711828
)0.99
es/full/all/es2018
124710900
ns/iter (± 1891410
)125788986
ns/iter (± 1166357
)0.99
es/full/all/es2019
123453731
ns/iter (± 1249807
)125484832
ns/iter (± 1105489
)0.98
es/full/all/es2020
118648506
ns/iter (± 2712879
)121840500
ns/iter (± 661323
)0.97
es/full/parser
539582
ns/iter (± 11633
)556255
ns/iter (± 3100
)0.97
es/full/base/fixer
17106
ns/iter (± 315
)18612
ns/iter (± 281
)0.92
es/full/base/resolver_and_hygiene
81135
ns/iter (± 1381
)84521
ns/iter (± 217
)0.96
This comment was automatically generated by workflow using github-action-benchmark.