UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

89 lines (88 loc) 1.25 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n\t// TODO write some code\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 3, "column": 1, "offset": 34 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 3, "column": 10, "offset": 43 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 3, "column": 10, "offset": 43 }, "end": { "line": 5, "column": 1, "offset": 45 } } }, { "type": "svelteElement", "tagName": "div", "properties": [], "selfClosing": false, "children": [], "position": { "start": { "line": 5, "column": 1, "offset": 45 }, "end": { "line": 5, "column": 12, "offset": 56 } } } ], "position": { "start": { "column": 1, "line": 1, "offset": 0 }, "end": { "line": 5, "column": 12, "offset": 56 } } }