You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/parser/samples/implicitly-closed-li-block/output.json

104 lines
1.8 KiB

{
"html": {
"start": 0,
"end": 51,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 51,
"type": "Element",
"name": "ul",
"attributes": [],
"children": [
{
"start": 4,
"end": 6,
"type": "Text",
5 years ago
"raw": "\n\t",
"data": "\n\t"
},
{
"start": 6,
"end": 40,
"type": "Element",
"name": "li",
"attributes": [],
"children": [
{
"start": 10,
"end": 13,
"type": "Text",
5 years ago
"raw": "a\n\t",
"data": "a\n\t"
},
{
"start": 13,
"end": 38,
"type": "IfBlock",
"expression": {
"type": "Literal",
"start": 18,
"end": 22,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 10
}
},
"value": true,
"raw": "true"
},
"children": [
{
"start": 26,
"end": 33,
"type": "Element",
"name": "li",
"attributes": [],
"children": [
{
"start": 30,
"end": 33,
"type": "Text",
5 years ago
"raw": "b\n\t",
"data": "b\n\t"
}
]
}
]
},
{
"start": 38,
"end": 40,
"type": "Text",
5 years ago
"raw": "\n\t",
"data": "\n\t"
}
]
},
{
"start": 40,
"end": 46,
"type": "Element",
"name": "li",
"attributes": [],
"children": [
{
"start": 44,
"end": 46,
"type": "Text",
5 years ago
"raw": "c\n",
"data": "c\n"
}
]
}
]
}
]
}
5 years ago
}