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

85 lines
1.4 KiB

{
"html": {
"start": 0,
"end": 71,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 71,
"type": "EachBlock",
"expression": {
"type": "Identifier",
"start": 7,
"end": 14,
"name": "animals"
},
"children": [
{
"start": 42,
"end": 63,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 45,
"end": 50,
"type": "MustacheTag",
"expression": {
"type": "Identifier",
"start": 46,
"end": 49,
"name": "key"
}
},
{
"start": 50,
"end": 52,
"type": "Text",
"raw": ": ",
"data": ": "
},
{
"start": 52,
"end": 59,
"type": "MustacheTag",
"expression": {
"type": "Identifier",
"start": 53,
"end": 58,
"name": "value"
}
}
]
}
],
"context": {
"start": 18,
"end": 39,
"type": "ArrayPattern",
"elements": [
{
"start": 19,
"end": 22,
"type": "Identifier",
"name": "key"
},
{
"start": 24,
"end": 29,
"type": "Identifier",
"name": "value"
},
{
"start": 31,
"end": 38,
"type": "RestIdentifier",
"name": "rest"
}
]
}
}
]
}
}