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-elseif/output.json

101 lines
1.7 KiB

8 years ago
{
"html": {
"start": 0,
"end": 88,
8 years ago
"type": "Fragment",
"children": [
{
"start": 0,
"end": 88,
8 years ago
"type": "IfBlock",
"expression": {
"type": "BinaryExpression",
"start": 5,
"end": 11,
8 years ago
"left": {
"type": "Identifier",
"start": 5,
"end": 6,
8 years ago
"name": "x"
},
"operator": ">",
8 years ago
"right": {
"type": "Literal",
"start": 9,
"end": 11,
8 years ago
"value": 10,
"raw": "10"
}
},
"children": [
{
"start": 14,
"end": 41,
8 years ago
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 17,
"end": 37,
8 years ago
"type": "Text",
"data": "x is greater than 10"
}
]
}
],
"else": {
"start": 57,
"end": 83,
8 years ago
"type": "ElseBlock",
"children": [
{
"start": 57,
"end": 88,
8 years ago
"type": "IfBlock",
"elseif": true,
"expression": {
"type": "BinaryExpression",
"start": 51,
"end": 56,
8 years ago
"left": {
"type": "Identifier",
"start": 51,
"end": 52,
8 years ago
"name": "x"
},
"operator": "<",
8 years ago
"right": {
"type": "Literal",
"start": 55,
"end": 56,
8 years ago
"value": 5,
"raw": "5"
}
},
"children": [
{
"start": 59,
"end": 82,
8 years ago
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 62,
"end": 78,
8 years ago
"type": "Text",
"data": "x is less than 5"
}
]
}
]
}
]
}
}
]
},
"css": null,
"js": null
}