svelte-parse
Version:
An increidbly relaxed svelte-parser
195 lines (194 loc) • 3.04 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteElement",
"tagName": "p",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 1,
"column": 4,
"offset": 3
},
"end": {
"line": 1,
"column": 5,
"offset": 4
}
}
},
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 1,
"column": 5,
"offset": 4
},
"end": {
"line": 1,
"column": 8,
"offset": 7
}
},
"expression": {
"type": "svelteExpression",
"value": "a",
"position": {
"start": {
"line": 1,
"column": 6,
"offset": 5
},
"end": {
"line": 1,
"column": 7,
"offset": 6
}
}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 1,
"column": 8,
"offset": 7
},
"end": {
"line": 1,
"column": 9,
"offset": 8
}
}
},
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 1,
"column": 9,
"offset": 8
},
"end": {
"line": 1,
"column": 12,
"offset": 11
}
},
"expression": {
"type": "svelteExpression",
"value": "b",
"position": {
"start": {
"line": 1,
"column": 10,
"offset": 9
},
"end": {
"line": 1,
"column": 11,
"offset": 10
}
}
}
},
{
"type": "text",
"value": " : ",
"position": {
"start": {
"line": 1,
"column": 12,
"offset": 11
},
"end": {
"line": 1,
"column": 15,
"offset": 14
}
}
},
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 1,
"column": 15,
"offset": 14
},
"end": {
"line": 1,
"column": 18,
"offset": 17
}
},
"expression": {
"type": "svelteExpression",
"value": "c",
"position": {
"start": {
"line": 1,
"column": 16,
"offset": 15
},
"end": {
"line": 1,
"column": 17,
"offset": 16
}
}
}
},
{
"type": "text",
"value": " : ",
"position": {
"start": {
"line": 1,
"column": 18,
"offset": 17
},
"end": {
"line": 1,
"column": 21,
"offset": 20
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 25,
"offset": 24
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 25,
"offset": 24
}
}
}