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

62 lines
955 B

{
"html": {
"start": 0,
"end": 51,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 51,
"type": "IfBlock",
"expression": {
"type": "Identifier",
"start": 5,
"end": 8,
"name": "foo"
},
"children": [
{
"start": 11,
"end": 21,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 14,
"end": 17,
"type": "Text",
"data": "foo"
}
]
}
],
"else": {
"start": 29,
"end": 46,
"type": "ElseBlock",
"children": [
{
"start": 31,
"end": 45,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 34,
"end": 41,
"type": "Text",
"data": "not foo"
}
]
}
]
}
}
]
},
"css": null,
"instance": null,
"module": null
}