swc/crates/swc_ecma_parser/tests/comments/issue-4876/input.js.stderr
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

43 lines
545 B
Plaintext

> Leading (lo)
Error:
> !
|
| something v5.1.0
|
| more
|
| else
|
,-[$DIR/tests/comments/issue-4876/input.js:9:1]
9 | // a
: ^
10 | console.log(1);
: ^
11 | // b
`----
> Leading (lo)
Error:
> a
,-[$DIR/tests/comments/issue-4876/input.js:9:1]
9 | // a
: ^
10 | console.log(1);
: ^
11 | // b
`----
> Trailing (hi)
Error:
> b
,-[$DIR/tests/comments/issue-4876/input.js:9:1]
9 | // a
10 | console.log(1);
: ^
11 | // b
`----