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

70 lines
1.1 KiB

8 years ago
{
"html": {
"start": 30,
"end": 63,
8 years ago
"type": "Fragment",
"children": [
{
"start": 28,
"end": 30,
"type": "Text",
"data": "\n\n"
},
{
"start": 30,
"end": 63,
8 years ago
"type": "Element",
"name": "canvas",
"attributes": [
{
"start": 38,
"end": 53,
"type": "Binding",
"name": "this",
"modifiers": [],
"expression": {
"type": "Identifier",
"start": 49,
"end": 52,
"name": "foo"
}
8 years ago
}
],
"children": []
}
]
},
"instance": {
"start": 0,
"end": 28,
"context": "default",
"content": {
"type": "Program",
"start": 8,
"end": 19,
"body": [
{
"type": "VariableDeclaration",
"start": 10,
"end": 18,
"declarations": [
{
"type": "VariableDeclarator",
"start": 14,
"end": 17,
"id": {
"type": "Identifier",
"start": 14,
"end": 17,
"name": "foo"
},
"init": null
}
],
"kind": "let"
}
],
"sourceType": "module"
}
}
}