swc/crates/swc_xml_parser/tests/recovery/pi/bad-pi-7/span.rust-debug
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

68 lines
1.2 KiB
Plaintext

x Document
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | ,-> <root>
2 | | <??foo??>
3 | `-> </root>
`----
x Child
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | ,-> <root>
2 | | <??foo??>
3 | `-> </root>
`----
x Element
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | ,-> <root>
2 | | <??foo??>
3 | `-> </root>
`----
x Child
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | ,-> <root>
2 | `-> <??foo??>
3 | </root>
`----
x Text
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | ,-> <root>
2 | `-> <??foo??>
3 | </root>
`----
x Child
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | <root>
2 | <??foo??>
: ^^^^^^^^^
3 | </root>
`----
x ProcessingInstruction
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | <root>
2 | <??foo??>
: ^^^^^^^^^
3 | </root>
`----
x Child
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | <root>
2 | <??foo??>
: ^
3 | </root>
`----
x Text
,-[$DIR/tests/recovery/pi/bad-pi-7/input.xml:1:1]
1 | <root>
2 | <??foo??>
: ^
3 | </root>
`----