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

86 lines
1.3 KiB

8 years ago
{
"html": {
"start": 41,
"end": 63,
8 years ago
"type": "Fragment",
"children": [
{
"start": 39,
"end": 41,
"type": "Text",
"data": "\n\n"
},
{
"start": 41,
"end": 63,
8 years ago
"type": "Element",
"name": "h1",
"attributes": [],
"children": [
{
"start": 45,
"end": 51,
8 years ago
"type": "Text",
"data": "Hello "
},
{
"start": 51,
"end": 57,
8 years ago
"type": "MustacheTag",
"expression": {
"type": "Identifier",
"start": 52,
"end": 56,
8 years ago
"name": "name"
}
},
{
"start": 57,
"end": 58,
8 years ago
"type": "Text",
"data": "!"
}
]
}
]
},
"instance": {
"start": 0,
"end": 39,
"context": "default",
"content": {
"type": "Program",
"start": 8,
"end": 30,
"body": [
{
"type": "VariableDeclaration",
"start": 10,
"end": 29,
"declarations": [
{
"type": "VariableDeclarator",
"start": 14,
"end": 28,
"id": {
"type": "Identifier",
"start": 14,
"end": 18,
"name": "name"
},
"init": {
"type": "Literal",
"start": 21,
"end": 28,
"value": "world",
"raw": "'world'"
}
}
],
"kind": "let"
}
],
"sourceType": "module"
}
}
}