mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
b8fe04f720
**Description:** This PR makes the error reporter print contexts. **Related issue:** - https://github.com/swc-project/swc/issues/6525.
43 lines
545 B
Plaintext
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
|
|
`----
|