mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
99c35ff980
swc_ecma_ast: - Use `BlockStmt` instead of `Vec<Stmt>` for static blocks. swc_ecma_parser: - Fix span of static blocks.
259 lines
4.5 KiB
Plaintext
259 lines
4.5 KiB
Plaintext
warning: Module
|
|
--> $DIR/tests/span/js/decl/class.js:1:1
|
|
|
|
|
1 | / class Foo extends A {
|
|
2 | | foo = '1';
|
|
3 | | static bar = 2;
|
|
4 | |
|
|
... |
|
|
7 | | async asyncMethod() { }
|
|
8 | | }
|
|
| |_^
|
|
|
|
warning: ModuleItem
|
|
--> $DIR/tests/span/js/decl/class.js:1:1
|
|
|
|
|
1 | / class Foo extends A {
|
|
2 | | foo = '1';
|
|
3 | | static bar = 2;
|
|
4 | |
|
|
... |
|
|
7 | | async asyncMethod() { }
|
|
8 | | }
|
|
| |_^
|
|
|
|
warning: Stmt
|
|
--> $DIR/tests/span/js/decl/class.js:1:1
|
|
|
|
|
1 | / class Foo extends A {
|
|
2 | | foo = '1';
|
|
3 | | static bar = 2;
|
|
4 | |
|
|
... |
|
|
7 | | async asyncMethod() { }
|
|
8 | | }
|
|
| |_^
|
|
|
|
warning: Decl
|
|
--> $DIR/tests/span/js/decl/class.js:1:1
|
|
|
|
|
1 | / class Foo extends A {
|
|
2 | | foo = '1';
|
|
3 | | static bar = 2;
|
|
4 | |
|
|
... |
|
|
7 | | async asyncMethod() { }
|
|
8 | | }
|
|
| |_^
|
|
|
|
warning: ClassDecl
|
|
--> $DIR/tests/span/js/decl/class.js:1:1
|
|
|
|
|
1 | / class Foo extends A {
|
|
2 | | foo = '1';
|
|
3 | | static bar = 2;
|
|
4 | |
|
|
... |
|
|
7 | | async asyncMethod() { }
|
|
8 | | }
|
|
| |_^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/decl/class.js:1:7
|
|
|
|
|
1 | class Foo extends A {
|
|
| ^^^
|
|
|
|
warning: Class
|
|
--> $DIR/tests/span/js/decl/class.js:1:1
|
|
|
|
|
1 | / class Foo extends A {
|
|
2 | | foo = '1';
|
|
3 | | static bar = 2;
|
|
4 | |
|
|
... |
|
|
7 | | async asyncMethod() { }
|
|
8 | | }
|
|
| |_^
|
|
|
|
warning: ClassMember
|
|
--> $DIR/tests/span/js/decl/class.js:2:5
|
|
|
|
|
2 | foo = '1';
|
|
| ^^^^^^^^^^
|
|
|
|
warning: ClassProp
|
|
--> $DIR/tests/span/js/decl/class.js:2:5
|
|
|
|
|
2 | foo = '1';
|
|
| ^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/class.js:2:5
|
|
|
|
|
2 | foo = '1';
|
|
| ^^^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/decl/class.js:2:5
|
|
|
|
|
2 | foo = '1';
|
|
| ^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/class.js:2:11
|
|
|
|
|
2 | foo = '1';
|
|
| ^^^
|
|
|
|
warning: Lit
|
|
--> $DIR/tests/span/js/decl/class.js:2:11
|
|
|
|
|
2 | foo = '1';
|
|
| ^^^
|
|
|
|
warning: Str
|
|
--> $DIR/tests/span/js/decl/class.js:2:11
|
|
|
|
|
2 | foo = '1';
|
|
| ^^^
|
|
|
|
warning: ClassMember
|
|
--> $DIR/tests/span/js/decl/class.js:3:5
|
|
|
|
|
3 | static bar = 2;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
warning: ClassProp
|
|
--> $DIR/tests/span/js/decl/class.js:3:5
|
|
|
|
|
3 | static bar = 2;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/class.js:3:12
|
|
|
|
|
3 | static bar = 2;
|
|
| ^^^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/decl/class.js:3:12
|
|
|
|
|
3 | static bar = 2;
|
|
| ^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/class.js:3:18
|
|
|
|
|
3 | static bar = 2;
|
|
| ^
|
|
|
|
warning: Lit
|
|
--> $DIR/tests/span/js/decl/class.js:3:18
|
|
|
|
|
3 | static bar = 2;
|
|
| ^
|
|
|
|
warning: Number
|
|
--> $DIR/tests/span/js/decl/class.js:3:18
|
|
|
|
|
3 | static bar = 2;
|
|
| ^
|
|
|
|
warning: ClassMember
|
|
--> $DIR/tests/span/js/decl/class.js:5:5
|
|
|
|
|
5 | static { }
|
|
| ^^^^^^^^^^
|
|
|
|
warning: BlockStmt
|
|
--> $DIR/tests/span/js/decl/class.js:5:12
|
|
|
|
|
5 | static { }
|
|
| ^^^
|
|
|
|
warning: ClassMember
|
|
--> $DIR/tests/span/js/decl/class.js:6:5
|
|
|
|
|
6 | method() { }
|
|
| ^^^^^^^^^^^^
|
|
|
|
warning: ClassMethod
|
|
--> $DIR/tests/span/js/decl/class.js:6:5
|
|
|
|
|
6 | method() { }
|
|
| ^^^^^^^^^^^^
|
|
|
|
warning: PropName
|
|
--> $DIR/tests/span/js/decl/class.js:6:5
|
|
|
|
|
6 | method() { }
|
|
| ^^^^^^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/decl/class.js:6:5
|
|
|
|
|
6 | method() { }
|
|
| ^^^^^^
|
|
|
|
warning: Function
|
|
--> $DIR/tests/span/js/decl/class.js:6:5
|
|
|
|
|
6 | method() { }
|
|
| ^^^^^^^^^^^^
|
|
|
|
warning: BlockStmt
|
|
--> $DIR/tests/span/js/decl/class.js:6:14
|
|
|
|
|
6 | method() { }
|
|
| ^^^
|
|
|
|
warning: ClassMember
|
|
--> $DIR/tests/span/js/decl/class.js:7:5
|
|
|
|
|
7 | async asyncMethod() { }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: ClassMethod
|
|
--> $DIR/tests/span/js/decl/class.js:7:5
|
|
|
|
|
7 | async asyncMethod() { }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: PropName
|
|
--> $DIR/tests/span/js/decl/class.js:7:11
|
|
|
|
|
7 | async asyncMethod() { }
|
|
| ^^^^^^^^^^^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/decl/class.js:7:11
|
|
|
|
|
7 | async asyncMethod() { }
|
|
| ^^^^^^^^^^^
|
|
|
|
warning: Function
|
|
--> $DIR/tests/span/js/decl/class.js:7:5
|
|
|
|
|
7 | async asyncMethod() { }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: BlockStmt
|
|
--> $DIR/tests/span/js/decl/class.js:7:25
|
|
|
|
|
7 | async asyncMethod() { }
|
|
| ^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/decl/class.js:1:19
|
|
|
|
|
1 | class Foo extends A {
|
|
| ^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/decl/class.js:1:19
|
|
|
|
|
1 | class Foo extends A {
|
|
| ^
|
|
|