mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
0ac55ae68b
testing: - Remove dependency on relative_path swc_common: - Span's byte positions are now self-contained and `GLOBALS` is not required while parsing. - Changed `Comments` into a trait. - Provide single-threaded implementation of `Comments` - Cargo feature `tty-emiiter` (To remove tty related stuffs ) - Cargo feature `sourcemap` (To remove sourcemap for web assets) - Removed dependency on dashmap swc_ecma_parser: - No duplicated comments. - Removed dependency on once_cell and regex - Add a test suite to visualize and test span of nodes. swc_ecma_utils: - Removed dependency on parser swc: - Remove dependency on derive_more and path-clean - Add multi-threaded implementation of `Comments` swc_ecmascript: - A new crate contains `ast`, `codegen`, `parser`, `utils`, `visit`.
170 lines
3.1 KiB
Plaintext
170 lines
3.1 KiB
Plaintext
warning: Module
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:1
|
|
|
|
|
1 | / const a: () => any = () => {
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |__^
|
|
|
|
warning: ModuleItem
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:1
|
|
|
|
|
1 | / const a: () => any = () => {
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |__^
|
|
|
|
warning: Stmt
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:1
|
|
|
|
|
1 | / const a: () => any = () => {
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |__^
|
|
|
|
warning: Decl
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:1
|
|
|
|
|
1 | / const a: () => any = () => {
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |__^
|
|
|
|
warning: VarDecl
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:1
|
|
|
|
|
1 | / const a: () => any = () => {
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |__^
|
|
|
|
warning: VarDeclarator
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:7
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| _______^
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |_^
|
|
|
|
warning: Pat
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:7
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^
|
|
|
|
warning: Ident
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:7
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^
|
|
|
|
warning: TsTypeAnn
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:8
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^^^^^^^^^^^
|
|
|
|
warning: TsType
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:10
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^^^^^^^^^
|
|
|
|
warning: TsFnOrConstructorType
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:10
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^^^^^^^^^
|
|
|
|
warning: TsFnType
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:10
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^^^^^^^^^
|
|
|
|
warning: TsTypeAnn
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:13
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^^^^^^
|
|
|
|
warning: TsType
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:16
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^^^
|
|
|
|
warning: TsKeywordType
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:16
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:22
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ______________________^
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |_^
|
|
|
|
warning: ArrowExpr
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:22
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ______________________^
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |_^
|
|
|
|
warning: BlockStmtOrExpr
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:28
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ____________________________^
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |_^
|
|
|
|
warning: BlockStmt
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:1:28
|
|
|
|
|
1 | const a: () => any = () => {
|
|
| ____________________________^
|
|
2 | | return 'foo'
|
|
3 | | };
|
|
| |_^
|
|
|
|
warning: Stmt
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:2:5
|
|
|
|
|
2 | return 'foo'
|
|
| ^^^^^^^^^^^^
|
|
|
|
warning: ReturnStmt
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:2:5
|
|
|
|
|
2 | return 'foo'
|
|
| ^^^^^^^^^^^^
|
|
|
|
warning: Expr
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:2:12
|
|
|
|
|
2 | return 'foo'
|
|
| ^^^^^
|
|
|
|
warning: Lit
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:2:12
|
|
|
|
|
2 | return 'foo'
|
|
| ^^^^^
|
|
|
|
warning: Str
|
|
--> $DIR/tests/span/ts/expr/arrow.ts:2:12
|
|
|
|
|
2 | return 'foo'
|
|
| ^^^^^
|
|
|