svelte-parse
Version:
An increidbly relaxed svelte-parser
146 lines (145 loc) • 2.36 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteElement",
"tagName": "div",
"properties": [
{
"type": "svelteProperty",
"name": "data-foo",
"value": [
{
"type": "text",
"value": "semi:"space:"",
"position": {
"start": {
"line": 1,
"column": 16,
"offset": 15
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 1,
"column": 38,
"offset": 37
},
"end": {}
}
},
{
"type": "text",
"value": "letter:"e",
"position": {
"start": {
"line": 1,
"column": 39,
"offset": 38
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 1,
"column": 52,
"offset": 51
},
"end": {}
}
},
{
"type": "text",
"value": "number:"1",
"position": {
"start": {
"line": 1,
"column": 53,
"offset": 52
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 1,
"column": 66,
"offset": 65
},
"end": {}
}
},
{
"type": "text",
"value": "end:"",
"position": {
"start": {
"line": 1,
"column": 67,
"offset": 66
},
"end": {
"line": 1,
"column": 77,
"offset": 76
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 1,
"column": 6,
"offset": 5
},
"end": {
"line": 1,
"column": 77,
"offset": 76
}
}
}
],
"selfClosing": false,
"children": [],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 84,
"offset": 83
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 84,
"offset": 83
}
}
}