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/if-block-else/output.json

74 lines
1.1 KiB

{
"html": {
"start": 0,
"end": 56,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 56,
"type": "IfBlock",
"expression": {
"start": 6,
"end": 9,
"type": "Identifier",
"name": "foo"
},
"children": [
{
"start": 13,
"end": 23,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 16,
"end": 19,
"type": "Text",
"data": "foo"
}
]
}
],
"else": {
"start": 32,
"end": 49,
"type": "ElseBlock",
"children": [
{
"start": 32,
"end": 34,
"type": "Text",
"data": "\n\t"
},
{
"start": 34,
"end": 48,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 37,
"end": 44,
"type": "Text",
"data": "not foo"
}
]
},
{
"start": 48,
"end": 49,
"type": "Text",
"data": "\n"
}
]
}
}
]
},
"css": null,
"js": null
}