mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
cbc8230310
swc_ecma_parser: - Fix parsing of static blocks with line breaks. (#2195)
150 lines
2.7 KiB
Plaintext
150 lines
2.7 KiB
Plaintext
warning: Module
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:1:1
|
|
|
|
|
1 | / class Foo {
|
|
2 | | static
|
|
3 | | {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
6 | | }
|
|
| |_^
|
|
|
|
warning: ModuleItem
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:1:1
|
|
|
|
|
1 | / class Foo {
|
|
2 | | static
|
|
3 | | {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
6 | | }
|
|
| |_^
|
|
|
|
warning: Stmt
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:1:1
|
|
|
|
|
1 | / class Foo {
|
|
2 | | static
|
|
3 | | {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
6 | | }
|
|
| |_^
|
|
|
|
warning: Decl
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:1:1
|
|
|
|
|
1 | / class Foo {
|
|
2 | | static
|
|
3 | | {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
6 | | }
|
|
| |_^
|
|
|
|
warning: ClassDecl
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:1:1
|
|
|
|
|
1 | / class Foo {
|
|
2 | | static
|
|
3 | | {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
6 | | }
|
|
| |_^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:1:7
|
|
|
|
|
1 | class Foo {
|
|
| ^^^
|
|
|
|
warning: Class
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:1:1
|
|
|
|
|
1 | / class Foo {
|
|
2 | | static
|
|
3 | | {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
6 | | }
|
|
| |_^
|
|
|
|
warning: ClassMember
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:2:5
|
|
|
|
|
2 | / static
|
|
3 | | {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
| |_____^
|
|
|
|
warning: BlockStmt
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:3:5
|
|
|
|
|
3 | / {
|
|
4 | | 1 + 1;
|
|
5 | | }
|
|
| |_____^
|
|
|
|
warning: Stmt
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:9
|
|
|
|
|
4 | 1 + 1;
|
|
| ^^^^^^
|
|
|
|
warning: ExprStmt
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:9
|
|
|
|
|
4 | 1 + 1;
|
|
| ^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:9
|
|
|
|
|
4 | 1 + 1;
|
|
| ^^^^^
|
|
|
|
warning: BinExpr
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:9
|
|
|
|
|
4 | 1 + 1;
|
|
| ^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:9
|
|
|
|
|
4 | 1 + 1;
|
|
| ^
|
|
|
|
warning: Lit
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:9
|
|
|
|
|
4 | 1 + 1;
|
|
| ^
|
|
|
|
warning: Number
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:9
|
|
|
|
|
4 | 1 + 1;
|
|
| ^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:13
|
|
|
|
|
4 | 1 + 1;
|
|
| ^
|
|
|
|
warning: Lit
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:13
|
|
|
|
|
4 | 1 + 1;
|
|
| ^
|
|
|
|
warning: Number
|
|
--> $DIR/tests/span/js/decl/static-blocks-with-line-breaks.js:4:13
|
|
|
|
|
4 | 1 + 1;
|
|
| ^
|
|
|