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

68 lines
1.1 KiB

{
"hash": 3238289871,
"html": {
"start": 0,
"end": 84,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 84,
"type": "EachBlock",
"expression": {
"type": "Identifier",
"start": 8,
"end": 15,
"name": "animals"
},
"children": [
{
"start": 29,
"end": 46,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 32,
"end": 42,
"type": "MustacheTag",
"expression": {
"type": "Identifier",
"start": 34,
"end": 40,
"name": "animal"
}
}
]
}
],
"context": "animal",
"else": {
"start": 55,
"end": 75,
"type": "ElseBlock",
"children": [
{
"start": 57,
"end": 74,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 60,
"end": 70,
"type": "Text",
"data": "no animals"
}
]
}
]
}
}
]
},
"css": null,
"js": null
}