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

67 lines
1.1 KiB

{
"html": {
"start": 0,
"end": 58,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 58,
"type": "EachBlock",
"expression": {
"type": "Identifier",
"start": 7,
"end": 14,
"name": "animals"
},
"children": [
{
"start": 30,
"end": 50,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 33,
"end": 36,
"type": "MustacheTag",
"expression": {
"type": "Identifier",
"start": 34,
"end": 35,
"name": "i"
}
},
{
"start": 36,
"end": 38,
"type": "Text",
"raw": ": ",
"data": ": "
},
{
"start": 38,
"end": 46,
"type": "MustacheTag",
"expression": {
"type": "Identifier",
"start": 39,
"end": 45,
"name": "animal"
}
}
]
}
],
7 years ago
"context": {
"start": 18,
"end": 24,
"type": "Identifier",
"name": "animal"
},
"index": "i"
}
]
}
}