mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
b8fe04f720
**Description:** This PR makes the error reporter print contexts. **Related issue:** - https://github.com/swc-project/swc/issues/6525.
551 lines
13 KiB
Plaintext
551 lines
13 KiB
Plaintext
|
|
x Document
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:1:1]
|
|
1 | ,-> <!doctype html>
|
|
2 | | <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <table>
|
|
8 | | <caption>Superheros and sidekicks</caption>
|
|
9 | | <colgroup>
|
|
10 | | </div>
|
|
11 | | <col>
|
|
12 | | <col span="2" class="batman">
|
|
13 | | <col span="2" class="flash">
|
|
14 | | </colgroup>
|
|
15 | | </table>
|
|
16 | |
|
|
17 | | </body>
|
|
18 | `-> </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
2 | <html lang="en">
|
|
`----
|
|
|
|
x DocumentType
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:1:1]
|
|
1 | <!doctype html>
|
|
: ^^^^^^^^^^^^^^^
|
|
2 | <html lang="en">
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:1:1]
|
|
1 | <!doctype html>
|
|
2 | ,-> <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <table>
|
|
8 | | <caption>Superheros and sidekicks</caption>
|
|
9 | | <colgroup>
|
|
10 | | </div>
|
|
11 | | <col>
|
|
12 | | <col span="2" class="batman">
|
|
13 | | <col span="2" class="flash">
|
|
14 | | </colgroup>
|
|
15 | | </table>
|
|
16 | |
|
|
17 | | </body>
|
|
18 | `-> </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:1:1]
|
|
1 | <!doctype html>
|
|
2 | ,-> <html lang="en">
|
|
3 | | <head>
|
|
4 | | <title>Document</title>
|
|
5 | | </head>
|
|
6 | | <body>
|
|
7 | | <table>
|
|
8 | | <caption>Superheros and sidekicks</caption>
|
|
9 | | <colgroup>
|
|
10 | | </div>
|
|
11 | | <col>
|
|
12 | | <col span="2" class="batman">
|
|
13 | | <col span="2" class="flash">
|
|
14 | | </colgroup>
|
|
15 | | </table>
|
|
16 | |
|
|
17 | | </body>
|
|
18 | `-> </html>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:1:1]
|
|
1 | <!doctype html>
|
|
2 | <html lang="en">
|
|
: ^^^^^^^^^
|
|
3 | <head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | | <title>Document</title>
|
|
5 | `-> </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | | <title>Document</title>
|
|
5 | `-> </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
5 | </head>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:2:1]
|
|
2 | <html lang="en">
|
|
3 | ,-> <head>
|
|
4 | `-> <title>Document</title>
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^^^^^^^^
|
|
5 | </head>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^
|
|
5 | </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:3:1]
|
|
3 | <head>
|
|
4 | <title>Document</title>
|
|
: ^
|
|
5 | </head>
|
|
6 | <body>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:4:1]
|
|
4 | <title>Document</title>
|
|
5 | </head>
|
|
: ^
|
|
6 | <body>
|
|
7 | <table>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:4:1]
|
|
4 | <title>Document</title>
|
|
5 | </head>
|
|
: ^
|
|
6 | <body>
|
|
7 | <table>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:5:1]
|
|
5 | </head>
|
|
6 | ,-> <body>
|
|
7 | | <table>
|
|
8 | | <caption>Superheros and sidekicks</caption>
|
|
9 | | <colgroup>
|
|
10 | | </div>
|
|
11 | | <col>
|
|
12 | | <col span="2" class="batman">
|
|
13 | | <col span="2" class="flash">
|
|
14 | | </colgroup>
|
|
15 | | </table>
|
|
16 | |
|
|
17 | `-> </body>
|
|
18 | </html>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:5:1]
|
|
5 | </head>
|
|
6 | ,-> <body>
|
|
7 | | <table>
|
|
8 | | <caption>Superheros and sidekicks</caption>
|
|
9 | | <colgroup>
|
|
10 | | </div>
|
|
11 | | <col>
|
|
12 | | <col span="2" class="batman">
|
|
13 | | <col span="2" class="flash">
|
|
14 | | </colgroup>
|
|
15 | | </table>
|
|
16 | |
|
|
17 | `-> </body>
|
|
18 | </html>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:5:1]
|
|
5 | </head>
|
|
6 | <body>
|
|
: ^
|
|
7 | <table>
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:5:1]
|
|
5 | </head>
|
|
6 | <body>
|
|
: ^
|
|
7 | <table>
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:6:1]
|
|
6 | <body>
|
|
7 | ,-> <table>
|
|
8 | | <caption>Superheros and sidekicks</caption>
|
|
9 | | <colgroup>
|
|
10 | | </div>
|
|
11 | | <col>
|
|
12 | | <col span="2" class="batman">
|
|
13 | | <col span="2" class="flash">
|
|
14 | | </colgroup>
|
|
15 | `-> </table>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:6:1]
|
|
6 | <body>
|
|
7 | ,-> <table>
|
|
8 | | <caption>Superheros and sidekicks</caption>
|
|
9 | | <colgroup>
|
|
10 | | </div>
|
|
11 | | <col>
|
|
12 | | <col span="2" class="batman">
|
|
13 | | <col span="2" class="flash">
|
|
14 | | </colgroup>
|
|
15 | `-> </table>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:6:1]
|
|
6 | <body>
|
|
7 | ,-> <table>
|
|
8 | `-> <caption>Superheros and sidekicks</caption>
|
|
9 | <colgroup>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:6:1]
|
|
6 | <body>
|
|
7 | ,-> <table>
|
|
8 | `-> <caption>Superheros and sidekicks</caption>
|
|
9 | <colgroup>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:7:1]
|
|
7 | <table>
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
9 | <colgroup>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:7:1]
|
|
7 | <table>
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
9 | <colgroup>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:7:1]
|
|
7 | <table>
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
9 | <colgroup>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:7:1]
|
|
7 | <table>
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
9 | <colgroup>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:7:1]
|
|
7 | <table>
|
|
8 | ,-> <caption>Superheros and sidekicks</caption>
|
|
9 | `-> <colgroup>
|
|
10 | </div>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:7:1]
|
|
7 | <table>
|
|
8 | ,-> <caption>Superheros and sidekicks</caption>
|
|
9 | `-> <colgroup>
|
|
10 | </div>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:8:1]
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
9 | ,-> <colgroup>
|
|
10 | `-> </div>
|
|
11 | <col>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:8:1]
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
9 | ,-> <colgroup>
|
|
10 | `-> </div>
|
|
11 | <col>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:8:1]
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
9 | ,-> <colgroup>
|
|
10 | `-> </div>
|
|
11 | <col>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:8:1]
|
|
8 | <caption>Superheros and sidekicks</caption>
|
|
9 | ,-> <colgroup>
|
|
10 | `-> </div>
|
|
11 | <col>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:9:1]
|
|
9 | <colgroup>
|
|
10 | ,-> </div>
|
|
11 | `-> <col>
|
|
12 | <col span="2" class="batman">
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:9:1]
|
|
9 | <colgroup>
|
|
10 | ,-> </div>
|
|
11 | `-> <col>
|
|
12 | <col span="2" class="batman">
|
|
`----
|
|
|
|
x Child
|
|
|
|
x Element
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:10:1]
|
|
10 | </div>
|
|
11 | <col>
|
|
: ^^^^^
|
|
12 | <col span="2" class="batman">
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:10:1]
|
|
10 | </div>
|
|
11 | <col>
|
|
: ^^^^^
|
|
12 | <col span="2" class="batman">
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:10:1]
|
|
10 | </div>
|
|
11 | ,-> <col>
|
|
12 | `-> <col span="2" class="batman">
|
|
13 | <col span="2" class="flash">
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:10:1]
|
|
10 | </div>
|
|
11 | ,-> <col>
|
|
12 | `-> <col span="2" class="batman">
|
|
13 | <col span="2" class="flash">
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:11:1]
|
|
11 | <col>
|
|
12 | <col span="2" class="batman">
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
13 | <col span="2" class="flash">
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:11:1]
|
|
11 | <col>
|
|
12 | <col span="2" class="batman">
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
13 | <col span="2" class="flash">
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:11:1]
|
|
11 | <col>
|
|
12 | <col span="2" class="batman">
|
|
: ^^^^^^^^
|
|
13 | <col span="2" class="flash">
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:11:1]
|
|
11 | <col>
|
|
12 | <col span="2" class="batman">
|
|
: ^^^^^^^^^^^^^^
|
|
13 | <col span="2" class="flash">
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:11:1]
|
|
11 | <col>
|
|
12 | ,-> <col span="2" class="batman">
|
|
13 | `-> <col span="2" class="flash">
|
|
14 | </colgroup>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:11:1]
|
|
11 | <col>
|
|
12 | ,-> <col span="2" class="batman">
|
|
13 | `-> <col span="2" class="flash">
|
|
14 | </colgroup>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:12:1]
|
|
12 | <col span="2" class="batman">
|
|
13 | <col span="2" class="flash">
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
14 | </colgroup>
|
|
`----
|
|
|
|
x Element
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:12:1]
|
|
12 | <col span="2" class="batman">
|
|
13 | <col span="2" class="flash">
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
14 | </colgroup>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:12:1]
|
|
12 | <col span="2" class="batman">
|
|
13 | <col span="2" class="flash">
|
|
: ^^^^^^^^
|
|
14 | </colgroup>
|
|
`----
|
|
|
|
x Attribute
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:12:1]
|
|
12 | <col span="2" class="batman">
|
|
13 | <col span="2" class="flash">
|
|
: ^^^^^^^^^^^^^
|
|
14 | </colgroup>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:12:1]
|
|
12 | <col span="2" class="batman">
|
|
13 | ,-> <col span="2" class="flash">
|
|
14 | `-> </colgroup>
|
|
15 | </table>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:12:1]
|
|
12 | <col span="2" class="batman">
|
|
13 | ,-> <col span="2" class="flash">
|
|
14 | `-> </colgroup>
|
|
15 | </table>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:13:1]
|
|
13 | <col span="2" class="flash">
|
|
14 | </colgroup>
|
|
: ^
|
|
15 | </table>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:13:1]
|
|
13 | <col span="2" class="flash">
|
|
14 | </colgroup>
|
|
: ^
|
|
15 | </table>
|
|
`----
|
|
|
|
x Child
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:14:1]
|
|
14 | </colgroup>
|
|
15 | ,-> </table>
|
|
16 | |
|
|
17 | `-> </body>
|
|
18 | </html>
|
|
`----
|
|
|
|
x Text
|
|
,-[$DIR/tests/recovery/element/colgroup/input.html:14:1]
|
|
14 | </colgroup>
|
|
15 | ,-> </table>
|
|
16 | |
|
|
17 | `-> </body>
|
|
18 | </html>
|
|
`----
|