swc/ecmascript/parser/tests/span/js/decl/static-blocks.js.spans
Sosuke Suzuki cbc8230310
fix(es/parser): Fix parsing of static blocks (#2200)
swc_ecma_parser:
 - Fix parsing of static blocks with line breaks. (#2195)
2021-09-03 14:57:23 +09:00

144 lines
2.3 KiB
Plaintext

warning: Module
--> $DIR/tests/span/js/decl/static-blocks.js:1:1
|
1 | / class Foo {
2 | | static {
3 | | 1 + 1;
4 | | }
5 | | }
| |_^
warning: ModuleItem
--> $DIR/tests/span/js/decl/static-blocks.js:1:1
|
1 | / class Foo {
2 | | static {
3 | | 1 + 1;
4 | | }
5 | | }
| |_^
warning: Stmt
--> $DIR/tests/span/js/decl/static-blocks.js:1:1
|
1 | / class Foo {
2 | | static {
3 | | 1 + 1;
4 | | }
5 | | }
| |_^
warning: Decl
--> $DIR/tests/span/js/decl/static-blocks.js:1:1
|
1 | / class Foo {
2 | | static {
3 | | 1 + 1;
4 | | }
5 | | }
| |_^
warning: ClassDecl
--> $DIR/tests/span/js/decl/static-blocks.js:1:1
|
1 | / class Foo {
2 | | static {
3 | | 1 + 1;
4 | | }
5 | | }
| |_^
warning: Ident
--> $DIR/tests/span/js/decl/static-blocks.js:1:7
|
1 | class Foo {
| ^^^
warning: Class
--> $DIR/tests/span/js/decl/static-blocks.js:1:1
|
1 | / class Foo {
2 | | static {
3 | | 1 + 1;
4 | | }
5 | | }
| |_^
warning: ClassMember
--> $DIR/tests/span/js/decl/static-blocks.js:2:5
|
2 | / static {
3 | | 1 + 1;
4 | | }
| |_____^
warning: BlockStmt
--> $DIR/tests/span/js/decl/static-blocks.js:2:12
|
2 | static {
| ____________^
3 | | 1 + 1;
4 | | }
| |_____^
warning: Stmt
--> $DIR/tests/span/js/decl/static-blocks.js:3:9
|
3 | 1 + 1;
| ^^^^^^
warning: ExprStmt
--> $DIR/tests/span/js/decl/static-blocks.js:3:9
|
3 | 1 + 1;
| ^^^^^^
warning: Expr
--> $DIR/tests/span/js/decl/static-blocks.js:3:9
|
3 | 1 + 1;
| ^^^^^
warning: BinExpr
--> $DIR/tests/span/js/decl/static-blocks.js:3:9
|
3 | 1 + 1;
| ^^^^^
warning: Expr
--> $DIR/tests/span/js/decl/static-blocks.js:3:9
|
3 | 1 + 1;
| ^
warning: Lit
--> $DIR/tests/span/js/decl/static-blocks.js:3:9
|
3 | 1 + 1;
| ^
warning: Number
--> $DIR/tests/span/js/decl/static-blocks.js:3:9
|
3 | 1 + 1;
| ^
warning: Expr
--> $DIR/tests/span/js/decl/static-blocks.js:3:13
|
3 | 1 + 1;
| ^
warning: Lit
--> $DIR/tests/span/js/decl/static-blocks.js:3:13
|
3 | 1 + 1;
| ^
warning: Number
--> $DIR/tests/span/js/decl/static-blocks.js:3:13
|
3 | 1 + 1;
| ^