swc/crates/swc_html_parser/tests/recovery/element/svg-4/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

530 lines
14 KiB
Plaintext

x Document
,-[$DIR/tests/recovery/element/svg-4/input.html:1:1]
1 | ,-> <!doctype html>
2 | | <html lang="en">
3 | | <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | | </head>
10 | | <body>
11 | | <svg><p>test</p></svg>
12 | | <svg><p>test</svg>
13 | | <svg>test</p></svg>
14 | | </body>
15 | `-> </html>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:1:1]
1 | <!doctype html>
: ^^^^^^^^^^^^^^^
2 | <html lang="en">
`----
x DocumentType
,-[$DIR/tests/recovery/element/svg-4/input.html:1:1]
1 | <!doctype html>
: ^^^^^^^^^^^^^^^
2 | <html lang="en">
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:1:1]
1 | <!doctype html>
2 | ,-> <html lang="en">
3 | | <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | | </head>
10 | | <body>
11 | | <svg><p>test</p></svg>
12 | | <svg><p>test</svg>
13 | | <svg>test</p></svg>
14 | | </body>
15 | `-> </html>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:1:1]
1 | <!doctype html>
2 | ,-> <html lang="en">
3 | | <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | | </head>
10 | | <body>
11 | | <svg><p>test</p></svg>
12 | | <svg><p>test</svg>
13 | | <svg>test</p></svg>
14 | | </body>
15 | `-> </html>
`----
x Attribute
,-[$DIR/tests/recovery/element/svg-4/input.html:1:1]
1 | <!doctype html>
2 | <html lang="en">
: ^^^^^^^^^
3 | <head>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | `-> </head>
10 | <body>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | | <meta charset="UTF-8">
5 | | <meta name="viewport"
6 | | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | | <title>Document</title>
9 | `-> </head>
10 | <body>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | `-> <meta charset="UTF-8">
5 | <meta name="viewport"
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:2:1]
2 | <html lang="en">
3 | ,-> <head>
4 | `-> <meta charset="UTF-8">
5 | <meta name="viewport"
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:3:1]
3 | <head>
4 | <meta charset="UTF-8">
: ^^^^^^^^^^^^^^^^^^^^^^
5 | <meta name="viewport"
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:3:1]
3 | <head>
4 | <meta charset="UTF-8">
: ^^^^^^^^^^^^^^^^^^^^^^
5 | <meta name="viewport"
`----
x Attribute
,-[$DIR/tests/recovery/element/svg-4/input.html:3:1]
3 | <head>
4 | <meta charset="UTF-8">
: ^^^^^^^^^^^^^^^
5 | <meta name="viewport"
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:3:1]
3 | <head>
4 | ,-> <meta charset="UTF-8">
5 | `-> <meta name="viewport"
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:3:1]
3 | <head>
4 | ,-> <meta charset="UTF-8">
5 | `-> <meta name="viewport"
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:4:1]
4 | <meta charset="UTF-8">
5 | ,-> <meta name="viewport"
6 | `-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:4:1]
4 | <meta charset="UTF-8">
5 | ,-> <meta name="viewport"
6 | `-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
`----
x Attribute
,-[$DIR/tests/recovery/element/svg-4/input.html:4:1]
4 | <meta charset="UTF-8">
5 | <meta name="viewport"
: ^^^^^^^^^^^^^^^
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
`----
x Attribute
,-[$DIR/tests/recovery/element/svg-4/input.html:5:1]
5 | <meta name="viewport"
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:5:1]
5 | <meta name="viewport"
6 | ,-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | `-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:5:1]
5 | <meta name="viewport"
6 | ,-> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | `-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Attribute
,-[$DIR/tests/recovery/element/svg-4/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Attribute
,-[$DIR/tests/recovery/element/svg-4/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
: ^^^^^^^^^^^^^^^^^
8 | <title>Document</title>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | ,-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | `-> <title>Document</title>
9 | </head>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:6:1]
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
7 | ,-> <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | `-> <title>Document</title>
9 | </head>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^^^^^^^^^^^^^^^^
9 | </head>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^^^^^^^^^^^^^^^^
9 | </head>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^
9 | </head>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^^^^^^^^
9 | </head>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^
9 | </head>
10 | <body>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:7:1]
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge">
8 | <title>Document</title>
: ^
9 | </head>
10 | <body>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:8:1]
8 | <title>Document</title>
9 | </head>
: ^
10 | <body>
11 | <svg><p>test</p></svg>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:8:1]
8 | <title>Document</title>
9 | </head>
: ^
10 | <body>
11 | <svg><p>test</p></svg>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:9:1]
9 | </head>
10 | ,-> <body>
11 | | <svg><p>test</p></svg>
12 | | <svg><p>test</svg>
13 | | <svg>test</p></svg>
14 | `-> </body>
15 | </html>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:9:1]
9 | </head>
10 | ,-> <body>
11 | | <svg><p>test</p></svg>
12 | | <svg><p>test</svg>
13 | | <svg>test</p></svg>
14 | `-> </body>
15 | </html>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:9:1]
9 | </head>
10 | <body>
: ^
11 | <svg><p>test</p></svg>
12 | <svg><p>test</svg>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:9:1]
9 | </head>
10 | <body>
: ^
11 | <svg><p>test</p></svg>
12 | <svg><p>test</svg>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^^^^^
12 | <svg><p>test</svg>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^^^^^
12 | <svg><p>test</svg>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^^^^^^^^^^^
12 | <svg><p>test</svg>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^^^^^^^^^^^
12 | <svg><p>test</svg>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^^^^
12 | <svg><p>test</svg>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^^^^
12 | <svg><p>test</svg>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^
12 | <svg><p>test</svg>
13 | <svg>test</p></svg>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:10:1]
10 | <body>
11 | <svg><p>test</p></svg>
: ^
12 | <svg><p>test</svg>
13 | <svg>test</p></svg>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:11:1]
11 | <svg><p>test</p></svg>
12 | <svg><p>test</svg>
: ^^^^^
13 | <svg>test</p></svg>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:11:1]
11 | <svg><p>test</p></svg>
12 | <svg><p>test</svg>
: ^^^^^
13 | <svg>test</p></svg>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:11:1]
11 | <svg><p>test</p></svg>
12 | ,-> <svg><p>test</svg>
13 | `-> <svg>test</p></svg>
14 | </body>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:11:1]
11 | <svg><p>test</p></svg>
12 | ,-> <svg><p>test</svg>
13 | `-> <svg>test</p></svg>
14 | </body>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:11:1]
11 | <svg><p>test</p></svg>
12 | <svg><p>test</svg>
: ^^^^^^^^^^^
13 | <svg>test</p></svg>
14 | </body>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:11:1]
11 | <svg><p>test</p></svg>
12 | <svg><p>test</svg>
: ^^^^^^^^^^^
13 | <svg>test</p></svg>
14 | </body>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:12:1]
12 | <svg><p>test</svg>
13 | <svg>test</p></svg>
: ^^^^^^^^^
14 | </body>
`----
x Element
,-[$DIR/tests/recovery/element/svg-4/input.html:12:1]
12 | <svg><p>test</svg>
13 | <svg>test</p></svg>
: ^^^^^^^^^
14 | </body>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:12:1]
12 | <svg><p>test</svg>
13 | <svg>test</p></svg>
: ^^^^
14 | </body>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:12:1]
12 | <svg><p>test</svg>
13 | <svg>test</p></svg>
: ^^^^
14 | </body>
`----
x Child
,-[$DIR/tests/recovery/element/svg-4/input.html:12:1]
12 | <svg><p>test</svg>
13 | ,-> <svg>test</p></svg>
14 | `-> </body>
15 | </html>
`----
x Text
,-[$DIR/tests/recovery/element/svg-4/input.html:12:1]
12 | <svg><p>test</svg>
13 | ,-> <svg>test</p></svg>
14 | `-> </body>
15 | </html>
`----