svelte-parse
Version:
An increidbly relaxed svelte-parser
153 lines (152 loc) • 2.59 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteBranchingBlock",
"name": "each",
"branches": [
{
"type": "svelteBranch",
"name": "each",
"expression": {
"type": "svelteExpression",
"value": "things as 𐊧",
"position": {
"start": {
"line": 1,
"column": 8,
"offset": 7
},
"end": {
"line": 1,
"column": 20,
"offset": 19
}
}
},
"children": [
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 1,
"column": 21,
"offset": 20
},
"end": {
"line": 2,
"column": 2,
"offset": 22
}
}
},
{
"type": "svelteElement",
"tagName": "p",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 2,
"column": 5,
"offset": 25
},
"end": {
"line": 2,
"column": 9,
"offset": 29
}
},
"expression": {
"type": "svelteExpression",
"value": "𐊧",
"position": {
"start": {
"line": 2,
"column": 6,
"offset": 26
},
"end": {
"line": 2,
"column": 8,
"offset": 28
}
}
}
}
],
"position": {
"start": {
"line": 2,
"column": 2,
"offset": 22
},
"end": {
"line": 2,
"column": 13,
"offset": 33
}
}
},
{
"type": "text",
"value": "\n",
"position": {
"start": {
"line": 2,
"column": 13,
"offset": 33
},
"end": {
"line": 3,
"column": 1,
"offset": 34
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 3,
"column": 1,
"offset": 34
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 3,
"column": 8,
"offset": 41
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 3,
"column": 8,
"offset": 41
}
}
}