swc/crates/swc_xml_parser/tests/fixture/cdata/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

246 lines
8.0 KiB
Plaintext

x Document
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | ,-> <root>
2 | | <description>An example of escaped CENDs</description>
3 | | <!-- This text contains a CEND ]]> -->
4 | | <!-- In this first case we put the ]] at the end of the first CDATA block
5 | | and the > in the second CDATA block -->
6 | | <exampleOfACDATA>
7 | | <![CDATA[
8 | | Since this is a CDATA section
9 | | I can use all sorts of reserved characters
10 | | but my document is still well formed!
11 | | ]]>
12 | | </exampleOfACDATA>
13 | `-> </root>
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | ,-> <root>
2 | | <description>An example of escaped CENDs</description>
3 | | <!-- This text contains a CEND ]]> -->
4 | | <!-- In this first case we put the ]] at the end of the first CDATA block
5 | | and the > in the second CDATA block -->
6 | | <exampleOfACDATA>
7 | | <![CDATA[
8 | | Since this is a CDATA section
9 | | I can use all sorts of reserved characters
10 | | but my document is still well formed!
11 | | ]]>
12 | | </exampleOfACDATA>
13 | `-> </root>
`----
x Element
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | ,-> <root>
2 | | <description>An example of escaped CENDs</description>
3 | | <!-- This text contains a CEND ]]> -->
4 | | <!-- In this first case we put the ]] at the end of the first CDATA block
5 | | and the > in the second CDATA block -->
6 | | <exampleOfACDATA>
7 | | <![CDATA[
8 | | Since this is a CDATA section
9 | | I can use all sorts of reserved characters
10 | | but my document is still well formed!
11 | | ]]>
12 | | </exampleOfACDATA>
13 | `-> </root>
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | ,-> <root>
2 | `-> <description>An example of escaped CENDs</description>
3 | <!-- This text contains a CEND ]]> -->
`----
x Text
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | ,-> <root>
2 | `-> <description>An example of escaped CENDs</description>
3 | <!-- This text contains a CEND ]]> -->
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | <root>
2 | <description>An example of escaped CENDs</description>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | <!-- This text contains a CEND ]]> -->
`----
x Element
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | <root>
2 | <description>An example of escaped CENDs</description>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | <!-- This text contains a CEND ]]> -->
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | <root>
2 | <description>An example of escaped CENDs</description>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | <!-- This text contains a CEND ]]> -->
`----
x Text
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | <root>
2 | <description>An example of escaped CENDs</description>
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | <!-- This text contains a CEND ]]> -->
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | <root>
2 | ,-> <description>An example of escaped CENDs</description>
3 | `-> <!-- This text contains a CEND ]]> -->
4 | <!-- In this first case we put the ]] at the end of the first CDATA block
`----
x Text
,-[$DIR/tests/fixture/cdata/input.xml:1:1]
1 | <root>
2 | ,-> <description>An example of escaped CENDs</description>
3 | `-> <!-- This text contains a CEND ]]> -->
4 | <!-- In this first case we put the ]] at the end of the first CDATA block
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:2:1]
2 | <description>An example of escaped CENDs</description>
3 | <!-- This text contains a CEND ]]> -->
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 | <!-- In this first case we put the ]] at the end of the first CDATA block
`----
x Comment
,-[$DIR/tests/fixture/cdata/input.xml:2:1]
2 | <description>An example of escaped CENDs</description>
3 | <!-- This text contains a CEND ]]> -->
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 | <!-- In this first case we put the ]] at the end of the first CDATA block
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:2:1]
2 | <description>An example of escaped CENDs</description>
3 | ,-> <!-- This text contains a CEND ]]> -->
4 | `-> <!-- In this first case we put the ]] at the end of the first CDATA block
5 | and the > in the second CDATA block -->
`----
x Text
,-[$DIR/tests/fixture/cdata/input.xml:2:1]
2 | <description>An example of escaped CENDs</description>
3 | ,-> <!-- This text contains a CEND ]]> -->
4 | `-> <!-- In this first case we put the ]] at the end of the first CDATA block
5 | and the > in the second CDATA block -->
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:3:1]
3 | <!-- This text contains a CEND ]]> -->
4 | ,-> <!-- In this first case we put the ]] at the end of the first CDATA block
5 | `-> and the > in the second CDATA block -->
6 | <exampleOfACDATA>
`----
x Comment
,-[$DIR/tests/fixture/cdata/input.xml:3:1]
3 | <!-- This text contains a CEND ]]> -->
4 | ,-> <!-- In this first case we put the ]] at the end of the first CDATA block
5 | `-> and the > in the second CDATA block -->
6 | <exampleOfACDATA>
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:4:1]
4 | <!-- In this first case we put the ]] at the end of the first CDATA block
5 | ,-> and the > in the second CDATA block -->
6 | `-> <exampleOfACDATA>
7 | <![CDATA[
`----
x Text
,-[$DIR/tests/fixture/cdata/input.xml:4:1]
4 | <!-- In this first case we put the ]] at the end of the first CDATA block
5 | ,-> and the > in the second CDATA block -->
6 | `-> <exampleOfACDATA>
7 | <![CDATA[
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:5:1]
5 | and the > in the second CDATA block -->
6 | ,-> <exampleOfACDATA>
7 | | <![CDATA[
8 | | Since this is a CDATA section
9 | | I can use all sorts of reserved characters
10 | | but my document is still well formed!
11 | | ]]>
12 | `-> </exampleOfACDATA>
13 | </root>
`----
x Element
,-[$DIR/tests/fixture/cdata/input.xml:5:1]
5 | and the > in the second CDATA block -->
6 | ,-> <exampleOfACDATA>
7 | | <![CDATA[
8 | | Since this is a CDATA section
9 | | I can use all sorts of reserved characters
10 | | but my document is still well formed!
11 | | ]]>
12 | `-> </exampleOfACDATA>
13 | </root>
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:5:1]
5 | and the > in the second CDATA block -->
6 | ,-> <exampleOfACDATA>
7 | | <![CDATA[
8 | | Since this is a CDATA section
9 | | I can use all sorts of reserved characters
10 | | but my document is still well formed!
11 | | ]]>
12 | `-> </exampleOfACDATA>
13 | </root>
`----
x Text
,-[$DIR/tests/fixture/cdata/input.xml:5:1]
5 | and the > in the second CDATA block -->
6 | ,-> <exampleOfACDATA>
7 | | <![CDATA[
8 | | Since this is a CDATA section
9 | | I can use all sorts of reserved characters
10 | | but my document is still well formed!
11 | | ]]>
12 | `-> </exampleOfACDATA>
13 | </root>
`----
x Child
,-[$DIR/tests/fixture/cdata/input.xml:11:1]
11 | ]]>
12 | </exampleOfACDATA>
: ^
13 | </root>
`----
x Text
,-[$DIR/tests/fixture/cdata/input.xml:11:1]
11 | ]]>
12 | </exampleOfACDATA>
: ^
13 | </root>
`----