svelte-parse
Version:
An increidbly relaxed svelte-parser
159 lines (158 loc) • 2.71 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteBranchingBlock",
"name": "each",
"branches": [
{
"type": "svelteBranch",
"name": "each",
"expression": {
"type": "svelteExpression",
"value": "things as thing (thing)",
"position": {
"start": {
"line": 1,
"column": 8,
"offset": 7
},
"end": {
"line": 1,
"column": 31,
"offset": 30
}
}
},
"children": [
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 1,
"column": 32,
"offset": 31
},
"end": {
"line": 2,
"column": 2,
"offset": 33
}
}
},
{
"type": "svelteElement",
"tagName": "div",
"properties": [
{
"type": "svelteDirective",
"name": "animate",
"value": [],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 2,
"column": 7,
"offset": 38
},
"end": {
"line": 2,
"column": 19,
"offset": 50
}
},
"specifier": "flip"
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "flips",
"position": {
"start": {
"line": 2,
"column": 20,
"offset": 51
},
"end": {
"line": 2,
"column": 25,
"offset": 56
}
}
}
],
"position": {
"start": {
"line": 2,
"column": 2,
"offset": 33
},
"end": {
"line": 2,
"column": 31,
"offset": 62
}
}
},
{
"type": "text",
"value": "\n",
"position": {
"start": {
"line": 2,
"column": 31,
"offset": 62
},
"end": {
"line": 3,
"column": 1,
"offset": 63
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 3,
"column": 1,
"offset": 63
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 3,
"column": 8,
"offset": 70
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 3,
"column": 8,
"offset": 70
}
}
}