mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
b8fe04f720
**Description:** This PR makes the error reporter print contexts. **Related issue:** - https://github.com/swc-project/swc/issues/6525.
103 lines
2.2 KiB
Plaintext
103 lines
2.2 KiB
Plaintext
|
|
x Document
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:1:1]
|
|
1 | ,-> <?xml version='1.0'encoding='UTF-8'?>
|
|
2 | | <root>
|
|
3 | | <foo><? foo?></foo>
|
|
4 | `-> </root>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:1:1]
|
|
1 | <?xml version='1.0'encoding='UTF-8'?>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
2 | <root>
|
|
`----
|
|
|
|
x ProcessingInstruction
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:1:1]
|
|
1 | <?xml version='1.0'encoding='UTF-8'?>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
2 | <root>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:1:1]
|
|
1 | <?xml version='1.0'encoding='UTF-8'?>
|
|
2 | ,-> <root>
|
|
3 | | <foo><? foo?></foo>
|
|
4 | `-> </root>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:1:1]
|
|
1 | <?xml version='1.0'encoding='UTF-8'?>
|
|
2 | ,-> <root>
|
|
3 | | <foo><? foo?></foo>
|
|
4 | `-> </root>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:1:1]
|
|
1 | <?xml version='1.0'encoding='UTF-8'?>
|
|
2 | ,-> <root>
|
|
3 | `-> <foo><? foo?></foo>
|
|
4 | </root>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:1:1]
|
|
1 | <?xml version='1.0'encoding='UTF-8'?>
|
|
2 | ,-> <root>
|
|
3 | `-> <foo><? foo?></foo>
|
|
4 | </root>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:2:1]
|
|
2 | <root>
|
|
3 | <foo><? foo?></foo>
|
|
: ^^^^^^^^^^^^^^^^^^^
|
|
4 | </root>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:2:1]
|
|
2 | <root>
|
|
3 | <foo><? foo?></foo>
|
|
: ^^^^^^^^^^^^^^^^^^^
|
|
4 | </root>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:2:1]
|
|
2 | <root>
|
|
3 | <foo><? foo?></foo>
|
|
: ^^^^^^^^
|
|
4 | </root>
|
|
`----
|
|
|
|
x ProcessingInstruction
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:2:1]
|
|
2 | <root>
|
|
3 | <foo><? foo?></foo>
|
|
: ^^^^^^^^
|
|
4 | </root>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:2:1]
|
|
2 | <root>
|
|
3 | <foo><? foo?></foo>
|
|
: ^
|
|
4 | </root>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/pi/bad-pi-2/input.xml:2:1]
|
|
2 | <root>
|
|
3 | <foo><? foo?></foo>
|
|
: ^
|
|
4 | </root>
|
|
`----
|