mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
f58b50bea7
swc_ecma_ast: - Split `MemberExpr` into `MemberExpr` and `SuperPropExpr`. - Use `Box<Expr>` for `MemberExpr.obj`. - Use ad-hoc type for `MemberExpr.prop`. - Use ad-hoc type for `SuperPropExpr.prop`. - Use `Callee` instead of `ExprOrSpread` for `CallExpr`. - Simplify types for meta property expressions.
140 lines
2.3 KiB
Plaintext
140 lines
2.3 KiB
Plaintext
warning: Module
|
|
--> $DIR/tests/span/js/expr/new.js:1:1
|
|
|
|
|
1 | / new Date();
|
|
2 | | (new Date).toString()
|
|
| |_____________________^
|
|
|
|
warning: ModuleItem
|
|
--> $DIR/tests/span/js/expr/new.js:1:1
|
|
|
|
|
1 | new Date();
|
|
| ^^^^^^^^^^^
|
|
|
|
warning: Stmt
|
|
--> $DIR/tests/span/js/expr/new.js:1:1
|
|
|
|
|
1 | new Date();
|
|
| ^^^^^^^^^^^
|
|
|
|
warning: ExprStmt
|
|
--> $DIR/tests/span/js/expr/new.js:1:1
|
|
|
|
|
1 | new Date();
|
|
| ^^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/expr/new.js:1:1
|
|
|
|
|
1 | new Date();
|
|
| ^^^^^^^^^^
|
|
|
|
warning: NewExpr
|
|
--> $DIR/tests/span/js/expr/new.js:1:1
|
|
|
|
|
1 | new Date();
|
|
| ^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/expr/new.js:1:5
|
|
|
|
|
1 | new Date();
|
|
| ^^^^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/expr/new.js:1:5
|
|
|
|
|
1 | new Date();
|
|
| ^^^^
|
|
|
|
warning: ModuleItem
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: Stmt
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: ExprStmt
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: CallExpr
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: Callee
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: MemberExpr
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^
|
|
|
|
warning: ParenExpr
|
|
--> $DIR/tests/span/js/expr/new.js:2:1
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/expr/new.js:2:2
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^
|
|
|
|
warning: NewExpr
|
|
--> $DIR/tests/span/js/expr/new.js:2:2
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/js/expr/new.js:2:6
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/expr/new.js:2:6
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/js/expr/new.js:2:12
|
|
|
|
|
2 | (new Date).toString()
|
|
| ^^^^^^^^
|
|
|