swc/crates/swc_html_parser/tests/fixture/element/p-1/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

194 lines
4.1 KiB
Plaintext

x Document
,-[$DIR/tests/fixture/element/p-1/input.html:1:1]
1 | ,-> <!DOCTYPE html>
2 | | <html>
3 | | <body>
4 | |
5 | | <p>This is a paragraph.</p>
6 | | <p>This is another paragraph.</p>
7 | |
8 | | </body>
9 | `-> </html>
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:1:1]
1 | <!DOCTYPE html>
: ^^^^^^^^^^^^^^^
2 | <html>
`----
x DocumentType
,-[$DIR/tests/fixture/element/p-1/input.html:1:1]
1 | <!DOCTYPE html>
: ^^^^^^^^^^^^^^^
2 | <html>
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:1:1]
1 | <!DOCTYPE html>
2 | ,-> <html>
3 | | <body>
4 | |
5 | | <p>This is a paragraph.</p>
6 | | <p>This is another paragraph.</p>
7 | |
8 | | </body>
9 | `-> </html>
`----
x Element
,-[$DIR/tests/fixture/element/p-1/input.html:1:1]
1 | <!DOCTYPE html>
2 | ,-> <html>
3 | | <body>
4 | |
5 | | <p>This is a paragraph.</p>
6 | | <p>This is another paragraph.</p>
7 | |
8 | | </body>
9 | `-> </html>
`----
x Child
x Element
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | |
5 | | <p>This is a paragraph.</p>
6 | | <p>This is another paragraph.</p>
7 | |
8 | | </body>
9 | `-> </html>
`----
x Element
,-[$DIR/tests/fixture/element/p-1/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | |
5 | | <p>This is a paragraph.</p>
6 | | <p>This is another paragraph.</p>
7 | |
8 | | </body>
9 | `-> </html>
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | `->
5 | <p>This is a paragraph.</p>
6 | <p>This is another paragraph.</p>
`----
x Text
,-[$DIR/tests/fixture/element/p-1/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | `->
5 | <p>This is a paragraph.</p>
6 | <p>This is another paragraph.</p>
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:4:1]
4 |
5 | <p>This is a paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 | <p>This is another paragraph.</p>
`----
x Element
,-[$DIR/tests/fixture/element/p-1/input.html:4:1]
4 |
5 | <p>This is a paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 | <p>This is another paragraph.</p>
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:4:1]
4 |
5 | <p>This is a paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^
6 | <p>This is another paragraph.</p>
`----
x Text
,-[$DIR/tests/fixture/element/p-1/input.html:4:1]
4 |
5 | <p>This is a paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^
6 | <p>This is another paragraph.</p>
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:4:1]
4 |
5 | <p>This is a paragraph.</p>
: ^
6 | <p>This is another paragraph.</p>
`----
x Text
,-[$DIR/tests/fixture/element/p-1/input.html:4:1]
4 |
5 | <p>This is a paragraph.</p>
: ^
6 | <p>This is another paragraph.</p>
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:5:1]
5 | <p>This is a paragraph.</p>
6 | <p>This is another paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Element
,-[$DIR/tests/fixture/element/p-1/input.html:5:1]
5 | <p>This is a paragraph.</p>
6 | <p>This is another paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:5:1]
5 | <p>This is a paragraph.</p>
6 | <p>This is another paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Text
,-[$DIR/tests/fixture/element/p-1/input.html:5:1]
5 | <p>This is a paragraph.</p>
6 | <p>This is another paragraph.</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Child
,-[$DIR/tests/fixture/element/p-1/input.html:5:1]
5 | <p>This is a paragraph.</p>
6 | ,-> <p>This is another paragraph.</p>
7 | |
8 | | </body>
9 | `-> </html>
`----
x Text
,-[$DIR/tests/fixture/element/p-1/input.html:5:1]
5 | <p>This is a paragraph.</p>
6 | ,-> <p>This is another paragraph.</p>
7 | |
8 | | </body>
9 | `-> </html>
`----