mirror of https://github.com/sveltejs/svelte
parent
eebd47d02b
commit
cc0055cf82
@ -0,0 +1,102 @@
|
||||
{
|
||||
"hash": "tzpuwu",
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 88,
|
||||
"type": "Fragment",
|
||||
"children": [
|
||||
{
|
||||
"start": 0,
|
||||
"end": 88,
|
||||
"type": "IfBlock",
|
||||
"expression": {
|
||||
"type": "BinaryExpression",
|
||||
"start": 5,
|
||||
"end": 11,
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 5,
|
||||
"end": 6,
|
||||
"name": "x"
|
||||
},
|
||||
"operator": ">",
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"start": 9,
|
||||
"end": 11,
|
||||
"value": 10,
|
||||
"raw": "10"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"start": 14,
|
||||
"end": 41,
|
||||
"type": "Element",
|
||||
"name": "p",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"start": 17,
|
||||
"end": 37,
|
||||
"type": "Text",
|
||||
"data": "x is greater than 10"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"else": {
|
||||
"start": 57,
|
||||
"end": 83,
|
||||
"type": "ElseBlock",
|
||||
"children": [
|
||||
{
|
||||
"start": 57,
|
||||
"end": 88,
|
||||
"type": "IfBlock",
|
||||
"elseif": true,
|
||||
"expression": {
|
||||
"type": "BinaryExpression",
|
||||
"start": 51,
|
||||
"end": 56,
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 51,
|
||||
"end": 52,
|
||||
"name": "x"
|
||||
},
|
||||
"operator": "<",
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"start": 55,
|
||||
"end": 56,
|
||||
"value": 5,
|
||||
"raw": "5"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"start": 59,
|
||||
"end": 82,
|
||||
"type": "Element",
|
||||
"name": "p",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"start": 62,
|
||||
"end": 78,
|
||||
"type": "Text",
|
||||
"data": "x is less than 5"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"css": null,
|
||||
"js": null
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
{
|
||||
"hash": "tzpuwu",
|
||||
"html": {
|
||||
"start": 0,
|
||||
"end": 88,
|
||||
"type": "Fragment",
|
||||
"children": [
|
||||
{
|
||||
"start": 0,
|
||||
"end": 88,
|
||||
"type": "IfBlock",
|
||||
"expression": {
|
||||
"type": "BinaryExpression",
|
||||
"start": 5,
|
||||
"end": 11,
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 5,
|
||||
"end": 6,
|
||||
"name": "x"
|
||||
},
|
||||
"operator": ">",
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"start": 9,
|
||||
"end": 11,
|
||||
"value": 10,
|
||||
"raw": "10"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"start": 14,
|
||||
"end": 41,
|
||||
"type": "Element",
|
||||
"name": "p",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"start": 17,
|
||||
"end": 37,
|
||||
"type": "Text",
|
||||
"data": "x is greater than 10"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"else": {
|
||||
"start": 57,
|
||||
"end": 83,
|
||||
"type": "ElseBlock",
|
||||
"children": [
|
||||
{
|
||||
"start": 57,
|
||||
"end": 88,
|
||||
"type": "IfBlock",
|
||||
"elseif": true,
|
||||
"expression": {
|
||||
"type": "BinaryExpression",
|
||||
"start": 51,
|
||||
"end": 56,
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 51,
|
||||
"end": 52,
|
||||
"name": "x"
|
||||
},
|
||||
"operator": "<",
|
||||
"right": {
|
||||
"type": "Literal",
|
||||
"start": 55,
|
||||
"end": 56,
|
||||
"value": 5,
|
||||
"raw": "5"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"start": 59,
|
||||
"end": 82,
|
||||
"type": "Element",
|
||||
"name": "p",
|
||||
"attributes": [],
|
||||
"children": [
|
||||
{
|
||||
"start": 62,
|
||||
"end": 78,
|
||||
"type": "Text",
|
||||
"data": "x is less than 5"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"css": null,
|
||||
"js": null
|
||||
}
|
@ -1 +1 @@
|
||||
{{yield}}
|
||||
{yield}
|
Loading…
Reference in new issue