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

262 lines
6.5 KiB
Plaintext

x Document
,-[$DIR/tests/fixture/element/img/input.html:1:1]
1 | ,-> <!DOCTYPE html>
2 | | <html>
3 | | <body>
4 | |
5 | | <h2>HTML Images</h2>
6 | | <p>HTML images are defined with the img tag:</p>
7 | |
8 | | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
9 | |
10 | | </body>
11 | `-> </html>
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:1:1]
1 | <!DOCTYPE html>
: ^^^^^^^^^^^^^^^
2 | <html>
`----
x DocumentType
,-[$DIR/tests/fixture/element/img/input.html:1:1]
1 | <!DOCTYPE html>
: ^^^^^^^^^^^^^^^
2 | <html>
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:1:1]
1 | <!DOCTYPE html>
2 | ,-> <html>
3 | | <body>
4 | |
5 | | <h2>HTML Images</h2>
6 | | <p>HTML images are defined with the img tag:</p>
7 | |
8 | | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
9 | |
10 | | </body>
11 | `-> </html>
`----
x Element
,-[$DIR/tests/fixture/element/img/input.html:1:1]
1 | <!DOCTYPE html>
2 | ,-> <html>
3 | | <body>
4 | |
5 | | <h2>HTML Images</h2>
6 | | <p>HTML images are defined with the img tag:</p>
7 | |
8 | | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
9 | |
10 | | </body>
11 | `-> </html>
`----
x Child
x Element
x Child
,-[$DIR/tests/fixture/element/img/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | |
5 | | <h2>HTML Images</h2>
6 | | <p>HTML images are defined with the img tag:</p>
7 | |
8 | | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
9 | |
10 | | </body>
11 | `-> </html>
`----
x Element
,-[$DIR/tests/fixture/element/img/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | |
5 | | <h2>HTML Images</h2>
6 | | <p>HTML images are defined with the img tag:</p>
7 | |
8 | | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
9 | |
10 | | </body>
11 | `-> </html>
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | `->
5 | <h2>HTML Images</h2>
6 | <p>HTML images are defined with the img tag:</p>
`----
x Text
,-[$DIR/tests/fixture/element/img/input.html:2:1]
2 | <html>
3 | ,-> <body>
4 | `->
5 | <h2>HTML Images</h2>
6 | <p>HTML images are defined with the img tag:</p>
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:4:1]
4 |
5 | <h2>HTML Images</h2>
: ^^^^^^^^^^^^^^^^^^^^
6 | <p>HTML images are defined with the img tag:</p>
`----
x Element
,-[$DIR/tests/fixture/element/img/input.html:4:1]
4 |
5 | <h2>HTML Images</h2>
: ^^^^^^^^^^^^^^^^^^^^
6 | <p>HTML images are defined with the img tag:</p>
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:4:1]
4 |
5 | <h2>HTML Images</h2>
: ^^^^^^^^^^^
6 | <p>HTML images are defined with the img tag:</p>
`----
x Text
,-[$DIR/tests/fixture/element/img/input.html:4:1]
4 |
5 | <h2>HTML Images</h2>
: ^^^^^^^^^^^
6 | <p>HTML images are defined with the img tag:</p>
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:4:1]
4 |
5 | <h2>HTML Images</h2>
: ^
6 | <p>HTML images are defined with the img tag:</p>
`----
x Text
,-[$DIR/tests/fixture/element/img/input.html:4:1]
4 |
5 | <h2>HTML Images</h2>
: ^
6 | <p>HTML images are defined with the img tag:</p>
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:5:1]
5 | <h2>HTML Images</h2>
6 | <p>HTML images are defined with the img tag:</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Element
,-[$DIR/tests/fixture/element/img/input.html:5:1]
5 | <h2>HTML Images</h2>
6 | <p>HTML images are defined with the img tag:</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:5:1]
5 | <h2>HTML Images</h2>
6 | <p>HTML images are defined with the img tag:</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Text
,-[$DIR/tests/fixture/element/img/input.html:5:1]
5 | <h2>HTML Images</h2>
6 | <p>HTML images are defined with the img tag:</p>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:5:1]
5 | <h2>HTML Images</h2>
6 | ,-> <p>HTML images are defined with the img tag:</p>
7 | `->
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
`----
x Text
,-[$DIR/tests/fixture/element/img/input.html:5:1]
5 | <h2>HTML Images</h2>
6 | ,-> <p>HTML images are defined with the img tag:</p>
7 | `->
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Element
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Attribute
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
: ^^^^^^^^^^^^^^^^^^^
`----
x Attribute
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
: ^^^^^^^^^^^^^^^^^^^
`----
x Attribute
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
: ^^^^^^^^^^^
`----
x Attribute
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
: ^^^^^^^^^^^^
`----
x Child
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | ,-> <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
9 | |
10 | | </body>
11 | `-> </html>
`----
x Text
,-[$DIR/tests/fixture/element/img/input.html:7:1]
7 |
8 | ,-> <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
9 | |
10 | | </body>
11 | `-> </html>
`----