mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 08:34:06 +03:00
414 lines
12 KiB
Plaintext
414 lines
12 KiB
Plaintext
|
|
x Document
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:1:1]
|
|
1 | ,-> <!DOCTYPE html>
|
|
2 | | <html>
|
|
3 | | <body>
|
|
4 | |
|
|
5 | | <p>This is a paragraph.</p>
|
|
6 | | <p>This is another paragraph.</p>
|
|
7 | |
|
|
8 | | </body>
|
|
9 | `-> </html>
|
|
`----
|
|
|
|
x Doctype { raw_keyword: Some(Atom('DOCTYPE' type=inline)), name: Some(Atom('html' type=inline)), raw_name: Some(Atom('html' type=inline)), force_quirks: false, raw_public_keyword: None,
|
|
| public_quote: None, public_id: None, raw_system_keyword: None, system_quote: None, system_id: None }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:1:1]
|
|
1 | <!DOCTYPE html>
|
|
: ^^^^^^^^^^^^^^^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:1:1]
|
|
1 | <!DOCTYPE html>
|
|
: ^
|
|
2 | <html>
|
|
`----
|
|
|
|
x StartTag { tag_name: Atom('html' type=inline), raw_tag_name: Some(Atom('html' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:2:1]
|
|
2 | <html>
|
|
: ^^^^^^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:2:1]
|
|
2 | <html>
|
|
: ^
|
|
3 | <body>
|
|
`----
|
|
|
|
x StartTag { tag_name: Atom('body' type=inline), raw_tag_name: Some(Atom('body' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:3:1]
|
|
3 | <body>
|
|
: ^^^^^^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:3:1]
|
|
3 | <body>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:4:1]
|
|
4 |
|
|
: ^
|
|
5 | <p>This is a paragraph.</p>
|
|
`----
|
|
|
|
x StartTag { tag_name: Atom('p' type=inline), raw_tag_name: Some(Atom('p' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^^^
|
|
`----
|
|
|
|
x Character { value: 'T', raw: Some(Atom('T' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'h', raw: Some(Atom('h' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'i', raw: Some(Atom('i' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 's', raw: Some(Atom('s' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: ' ', raw: Some(Atom(' ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'i', raw: Some(Atom('i' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 's', raw: Some(Atom('s' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: ' ', raw: Some(Atom(' ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: ' ', raw: Some(Atom(' ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'p', raw: Some(Atom('p' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'r', raw: Some(Atom('r' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'g', raw: Some(Atom('g' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'r', raw: Some(Atom('r' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'p', raw: Some(Atom('p' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'h', raw: Some(Atom('h' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: '.', raw: Some(Atom('.' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x EndTag { tag_name: Atom('p' type=inline), raw_tag_name: Some(Atom('p' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^^^^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:5:1]
|
|
5 | <p>This is a paragraph.</p>
|
|
: ^
|
|
6 | <p>This is another paragraph.</p>
|
|
`----
|
|
|
|
x StartTag { tag_name: Atom('p' type=inline), raw_tag_name: Some(Atom('p' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^^^
|
|
`----
|
|
|
|
x Character { value: 'T', raw: Some(Atom('T' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'h', raw: Some(Atom('h' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'i', raw: Some(Atom('i' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 's', raw: Some(Atom('s' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: ' ', raw: Some(Atom(' ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'i', raw: Some(Atom('i' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 's', raw: Some(Atom('s' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: ' ', raw: Some(Atom(' ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'n', raw: Some(Atom('n' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'o', raw: Some(Atom('o' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 't', raw: Some(Atom('t' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'h', raw: Some(Atom('h' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'e', raw: Some(Atom('e' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'r', raw: Some(Atom('r' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: ' ', raw: Some(Atom(' ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'p', raw: Some(Atom('p' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'r', raw: Some(Atom('r' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'g', raw: Some(Atom('g' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'r', raw: Some(Atom('r' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'a', raw: Some(Atom('a' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'p', raw: Some(Atom('p' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: 'h', raw: Some(Atom('h' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: '.', raw: Some(Atom('.' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x EndTag { tag_name: Atom('p' type=inline), raw_tag_name: Some(Atom('p' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^^^^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:6:1]
|
|
6 | <p>This is another paragraph.</p>
|
|
: ^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:7:1]
|
|
7 |
|
|
: ^
|
|
8 | </body>
|
|
`----
|
|
|
|
x EndTag { tag_name: Atom('body' type=inline), raw_tag_name: Some(Atom('body' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:8:1]
|
|
8 | </body>
|
|
: ^^^^^^^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:8:1]
|
|
8 | </body>
|
|
: ^
|
|
9 | </html>
|
|
`----
|
|
|
|
x EndTag { tag_name: Atom('html' type=inline), raw_tag_name: Some(Atom('html' type=inline)), self_closing: false, attributes: [] }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:9:1]
|
|
9 | </html>
|
|
: ^^^^^^^
|
|
`----
|
|
|
|
x Character { value: '\n', raw: Some(Atom('
|
|
| ' type=inline)) }
|
|
,-[$DIR/tests/fixture/paragraphs/input.html:9:1]
|
|
9 | </html>
|
|
: ^
|
|
`----
|