mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 09:52:57 +03:00
b8fe04f720
**Description:** This PR makes the error reporter print contexts. **Related issue:** - https://github.com/swc-project/swc/issues/6525.
193 lines
3.6 KiB
Plaintext
193 lines
3.6 KiB
Plaintext
|
|
x Document
|
|
,-[$DIR/tests/fixture/document/input.html:1:1]
|
|
1 | ,-> <!DOCTYPE html>
|
|
2 | | <html>
|
|
3 | | <body>
|
|
4 | |
|
|
5 | | <h1>My First Heading</h1>
|
|
6 | |
|
|
7 | | <p>My first paragraph.</p>
|
|
8 | |
|
|
9 | | </body>
|
|
10 | `-> </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:1:1]
|
|
1 | <!DOCTYPE html>
|
|
: ^^^^^^^^^^^^^^^
|
|
2 | <html>
|
|
`----
|
|
|
|
x DocumentType
|
|
,-[$DIR/tests/fixture/document/input.html:1:1]
|
|
1 | <!DOCTYPE html>
|
|
: ^^^^^^^^^^^^^^^
|
|
2 | <html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:1:1]
|
|
1 | <!DOCTYPE html>
|
|
2 | ,-> <html>
|
|
3 | | <body>
|
|
4 | |
|
|
5 | | <h1>My First Heading</h1>
|
|
6 | |
|
|
7 | | <p>My first paragraph.</p>
|
|
8 | |
|
|
9 | | </body>
|
|
10 | `-> </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/document/input.html:1:1]
|
|
1 | <!DOCTYPE html>
|
|
2 | ,-> <html>
|
|
3 | | <body>
|
|
4 | |
|
|
5 | | <h1>My First Heading</h1>
|
|
6 | |
|
|
7 | | <p>My first paragraph.</p>
|
|
8 | |
|
|
9 | | </body>
|
|
10 | `-> </html>
|
|
`----
|
|
|
|
x Child
|
|
|
|
x Element
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:2:1]
|
|
2 | <html>
|
|
3 | ,-> <body>
|
|
4 | |
|
|
5 | | <h1>My First Heading</h1>
|
|
6 | |
|
|
7 | | <p>My first paragraph.</p>
|
|
8 | |
|
|
9 | | </body>
|
|
10 | `-> </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/document/input.html:2:1]
|
|
2 | <html>
|
|
3 | ,-> <body>
|
|
4 | |
|
|
5 | | <h1>My First Heading</h1>
|
|
6 | |
|
|
7 | | <p>My first paragraph.</p>
|
|
8 | |
|
|
9 | | </body>
|
|
10 | `-> </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:2:1]
|
|
2 | <html>
|
|
3 | ,-> <body>
|
|
4 | `->
|
|
5 | <h1>My First Heading</h1>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/document/input.html:2:1]
|
|
2 | <html>
|
|
3 | ,-> <body>
|
|
4 | `->
|
|
5 | <h1>My First Heading</h1>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:4:1]
|
|
4 |
|
|
5 | <h1>My First Heading</h1>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/document/input.html:4:1]
|
|
4 |
|
|
5 | <h1>My First Heading</h1>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:4:1]
|
|
4 |
|
|
5 | <h1>My First Heading</h1>
|
|
: ^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/document/input.html:4:1]
|
|
4 |
|
|
5 | <h1>My First Heading</h1>
|
|
: ^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:4:1]
|
|
4 |
|
|
5 | ,-> <h1>My First Heading</h1>
|
|
6 | `->
|
|
7 | <p>My first paragraph.</p>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/document/input.html:4:1]
|
|
4 |
|
|
5 | ,-> <h1>My First Heading</h1>
|
|
6 | `->
|
|
7 | <p>My first paragraph.</p>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:6:1]
|
|
6 |
|
|
7 | <p>My first paragraph.</p>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/fixture/document/input.html:6:1]
|
|
6 |
|
|
7 | <p>My first paragraph.</p>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:6:1]
|
|
6 |
|
|
7 | <p>My first paragraph.</p>
|
|
: ^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/document/input.html:6:1]
|
|
6 |
|
|
7 | <p>My first paragraph.</p>
|
|
: ^^^^^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/fixture/document/input.html:6:1]
|
|
6 |
|
|
7 | ,-> <p>My first paragraph.</p>
|
|
8 | |
|
|
9 | | </body>
|
|
10 | `-> </html>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/fixture/document/input.html:6:1]
|
|
6 |
|
|
7 | ,-> <p>My first paragraph.</p>
|
|
8 | |
|
|
9 | | </body>
|
|
10 | `-> </html>
|
|
`----
|