swc/crates/swc_ecma_parser/tests/span/js/expr/new.js.spans
Austaras f58b50bea7
refactor(es/ast): Change types of member-like expressions (#3178)
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.
2022-01-10 13:54:42 +00:00

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()
| ^^^^^^^^