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

259 lines
5.2 KiB
Plaintext

x Document
,-[$DIR/tests/fixture/element/a/input.html:1:1]
1 | ,-> <!doctype html>
2 | | <html lang="en">
3 | | <head>
4 | | <title>Document</title>
5 | | </head>
6 | | <body>
7 | |
8 | | <a href="https://example.com">First</a>
9 | |
10 | | </body>
11 | `-> </html>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:1:1]
1 | <!doctype html>
: ^^^^^^^^^^^^^^^
2 | <html lang="en">
`----
x DocumentType
,-[$DIR/tests/fixture/element/a/input.html:1:1]
1 | <!doctype html>
: ^^^^^^^^^^^^^^^
2 | <html lang="en">
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:1:1]
1 | <!doctype html>
2 | ,-> <html lang="en">
3 | | <head>
4 | | <title>Document</title>
5 | | </head>
6 | | <body>
7 | |
8 | | <a href="https://example.com">First</a>
9 | |
10 | | </body>
11 | `-> </html>
`----
x Element
,-[$DIR/tests/fixture/element/a/input.html:1:1]
1 | <!doctype html>
2 | ,-> <html lang="en">
3 | | <head>
4 | | <title>Document</title>
5 | | </head>
6 | | <body>
7 | |
8 | | <a href="https://example.com">First</a>
9 | |
10 | | </body>
11 | `-> </html>
`----
x Attribute
,-[$DIR/tests/fixture/element/a/input.html:1:1]
1 | <!doctype html>
2 | <html lang="en">
: ^^^^^^^^^
3 | <head>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | | <title>Document</title>
5 | `-> </head>
6 | <body>
`----
x Element
,-[$DIR/tests/fixture/element/a/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | | <title>Document</title>
5 | `-> </head>
6 | <body>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | `-> <title>Document</title>
5 | </head>
`----
x Text
,-[$DIR/tests/fixture/element/a/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | `-> <title>Document</title>
5 | </head>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:3:1]
3 | <head>
4 | <title>Document</title>
: ^^^^^^^^^^^^^^^^^^^^^^^
5 | </head>
`----
x Element
,-[$DIR/tests/fixture/element/a/input.html:3:1]
3 | <head>
4 | <title>Document</title>
: ^^^^^^^^^^^^^^^^^^^^^^^
5 | </head>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:3:1]
3 | <head>
4 | <title>Document</title>
: ^^^^^^^^
5 | </head>
`----
x Text
,-[$DIR/tests/fixture/element/a/input.html:3:1]
3 | <head>
4 | <title>Document</title>
: ^^^^^^^^
5 | </head>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:3:1]
3 | <head>
4 | <title>Document</title>
: ^
5 | </head>
6 | <body>
`----
x Text
,-[$DIR/tests/fixture/element/a/input.html:3:1]
3 | <head>
4 | <title>Document</title>
: ^
5 | </head>
6 | <body>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:4:1]
4 | <title>Document</title>
5 | </head>
: ^
6 | <body>
`----
x Text
,-[$DIR/tests/fixture/element/a/input.html:4:1]
4 | <title>Document</title>
5 | </head>
: ^
6 | <body>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:5:1]
5 | </head>
6 | ,-> <body>
7 | |
8 | | <a href="https://example.com">First</a>
9 | |
10 | `-> </body>
11 | </html>
`----
x Element
,-[$DIR/tests/fixture/element/a/input.html:5:1]
5 | </head>
6 | ,-> <body>
7 | |
8 | | <a href="https://example.com">First</a>
9 | |
10 | `-> </body>
11 | </html>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:5:1]
5 | </head>
6 | ,-> <body>
7 | `->
8 | <a href="https://example.com">First</a>
`----
x Text
,-[$DIR/tests/fixture/element/a/input.html:5:1]
5 | </head>
6 | ,-> <body>
7 | `->
8 | <a href="https://example.com">First</a>
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:7:1]
7 |
8 | <a href="https://example.com">First</a>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Element
,-[$DIR/tests/fixture/element/a/input.html:7:1]
7 |
8 | <a href="https://example.com">First</a>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Attribute
,-[$DIR/tests/fixture/element/a/input.html:7:1]
7 |
8 | <a href="https://example.com">First</a>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:7:1]
7 |
8 | <a href="https://example.com">First</a>
: ^^^^^
`----
x Text
,-[$DIR/tests/fixture/element/a/input.html:7:1]
7 |
8 | <a href="https://example.com">First</a>
: ^^^^^
`----
x Child
,-[$DIR/tests/fixture/element/a/input.html:7:1]
7 |
8 | ,-> <a href="https://example.com">First</a>
9 | |
10 | `-> </body>
11 | </html>
`----
x Text
,-[$DIR/tests/fixture/element/a/input.html:7:1]
7 |
8 | ,-> <a href="https://example.com">First</a>
9 | |
10 | `-> </body>
11 | </html>
`----