swc/crates/swc_ecma_parser/tests/span/ts/declare/module.ts.spans
Donny/강동윤 b8fe04f720
feat(common): Add contexts to the error messages (#6526)
**Description:**

This PR makes the error reporter print contexts.

**Related issue:**

 - https://github.com/swc-project/swc/issues/6525.
2022-11-29 00:56:47 +09:00

120 lines
2.5 KiB
Plaintext

x Module
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | ,-> declare module "name" {
2 | | export class Foo { }
3 | `-> }
`----
x ModuleItem
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | ,-> declare module "name" {
2 | | export class Foo { }
3 | `-> }
`----
x Stmt
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | ,-> declare module "name" {
2 | | export class Foo { }
3 | `-> }
`----
x Decl
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | ,-> declare module "name" {
2 | | export class Foo { }
3 | `-> }
`----
x TsModuleDecl
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | ,-> declare module "name" {
2 | | export class Foo { }
3 | `-> }
`----
x TsModuleName
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
: ^^^^^^
2 | export class Foo { }
`----
x Str
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
: ^^^^^^
2 | export class Foo { }
`----
x TsNamespaceBody
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | ,-> declare module "name" {
2 | | export class Foo { }
3 | `-> }
`----
x TsModuleBlock
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | ,-> declare module "name" {
2 | | export class Foo { }
3 | `-> }
`----
x ModuleItem
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
2 | export class Foo { }
: ^^^^^^^^^^^^^^^^^^^^
3 | }
`----
x ModuleDecl
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
2 | export class Foo { }
: ^^^^^^^^^^^^^^^^^^^^
3 | }
`----
x ExportDecl
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
2 | export class Foo { }
: ^^^^^^^^^^^^^^^^^^^^
3 | }
`----
x Decl
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
2 | export class Foo { }
: ^^^^^^^^^^^^^
3 | }
`----
x ClassDecl
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
2 | export class Foo { }
: ^^^^^^^^^^^^^
3 | }
`----
x Ident
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
2 | export class Foo { }
: ^^^
3 | }
`----
x Class
,-[$DIR/tests/span/ts/declare/module.ts:1:1]
1 | declare module "name" {
2 | export class Foo { }
: ^^^^^^^^^^^^^
3 | }
`----