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

71 lines
1.1 KiB

{
"html": {
"start": 0,
"end": 51,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 51,
"type": "IfBlock",
"expression": {
"type": "Identifier",
"start": 5,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 8
}
},
"name": "foo"
},
"children": [
{
"start": 11,
"end": 21,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 14,
"end": 17,
"type": "Text",
"raw": "foo",
"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",
"raw": "not foo",
"data": "not foo"
}
]
}
]
}
}
]
}
}