swc/crates/swc_ecma_parser/tests/span/js/stmt/label.js.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

109 lines
1.8 KiB
Plaintext

x Module
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x ModuleItem
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x Stmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x LabeledStmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x Ident
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | a: while (true) {
: ^
2 | break a
`----
x Stmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x WhileStmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x Expr
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | a: while (true) {
: ^^^^
2 | break a
`----
x Lit
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | a: while (true) {
: ^^^^
2 | break a
`----
x Bool
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | a: while (true) {
: ^^^^
2 | break a
`----
x Stmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x BlockStmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | ,-> a: while (true) {
2 | | break a
3 | `-> }
`----
x Stmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | a: while (true) {
2 | break a
: ^^^^^^^
3 | }
`----
x BreakStmt
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | a: while (true) {
2 | break a
: ^^^^^^^
3 | }
`----
x Ident
,-[$DIR/tests/span/js/stmt/label.js:1:1]
1 | a: while (true) {
2 | break a
: ^
3 | }
`----