UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

122 lines (121 loc) 1.84 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n\tlet string = `here's some <strong>HTML!!!</strong>`;\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 3, "column": 1, "offset": 63 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 3, "column": 10, "offset": 72 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 3, "column": 10, "offset": 72 }, "end": { "line": 5, "column": 1, "offset": 74 } } }, { "type": "svelteElement", "tagName": "p", "properties": [], "selfClosing": false, "children": [ { "type": "svelteVoidBlock", "name": "html", "expression": { "type": "svelteExpression", "value": "string", "position": { "start": { "line": 5, "column": 11, "offset": 84 }, "end": { "line": 5, "column": 17, "offset": 90 } } }, "position": { "start": { "line": 5, "column": 4, "offset": 77 }, "end": { "line": 5, "column": 18, "offset": 91 } } } ], "position": { "start": { "line": 5, "column": 1, "offset": 74 }, "end": { "line": 5, "column": 22, "offset": 95 } } } ], "position": { "start": { "column": 1, "line": 1, "offset": 0 }, "end": { "line": 5, "column": 22, "offset": 95 } } }