UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

299 lines (298 loc) 4.89 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n import Card from '@sveltekit/ui/Card';\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 3, "column": 1, "offset": 50 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 3, "column": 10, "offset": 59 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 3, "column": 10, "offset": 59 }, "end": { "line": 5, "column": 1, "offset": 61 } } }, { "type": "svelteStyle", "tagName": "style", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n .content {\n padding: 20px;\n }\n", "position": { "start": { "line": 5, "column": 8, "offset": 68 }, "end": { "line": 9, "column": 1, "offset": 105 } } } ], "position": { "start": { "line": 5, "column": 1, "offset": 61 }, "end": { "line": 9, "column": 9, "offset": 113 } } }, { "type": "text", "value": "\n\n\n", "position": { "start": { "line": 9, "column": 9, "offset": 113 }, "end": { "line": 12, "column": 1, "offset": 116 } } }, { "type": "svelteComponent", "tagName": "Card", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 12, "column": 7, "offset": 122 }, "end": { "line": 13, "column": 3, "offset": 125 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "content", "position": { "start": { "line": 13, "column": 15, "offset": 137 }, "end": { "line": 13, "column": 23, "offset": 145 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 13, "column": 8, "offset": 130 }, "end": { "line": 13, "column": 23, "offset": 145 } } } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 13, "column": 24, "offset": 146 }, "end": { "line": 14, "column": 5, "offset": 151 } } }, { "type": "svelteElement", "tagName": "p", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "Slot data here...", "position": { "start": { "line": 14, "column": 8, "offset": 154 }, "end": { "line": 14, "column": 25, "offset": 171 } } } ], "position": { "start": { "line": 14, "column": 5, "offset": 151 }, "end": { "line": 14, "column": 29, "offset": 175 } } }, { "type": "text", "value": "\n ", "position": { "start": { "line": 14, "column": 29, "offset": 175 }, "end": { "line": 15, "column": 3, "offset": 178 } } } ], "position": { "start": { "line": 13, "column": 3, "offset": 125 }, "end": { "line": 15, "column": 9, "offset": 184 } } }, { "type": "text", "value": "\n", "position": { "start": { "line": 15, "column": 9, "offset": 184 }, "end": { "line": 16, "column": 1, "offset": 185 } } } ], "position": { "start": { "line": 12, "column": 1, "offset": 116 }, "end": { "line": 16, "column": 8, "offset": 192 } } } ], "position": { "start": { "column": 1, "line": 1, "offset": 0 }, "end": { "line": 16, "column": 8, "offset": 192 } } }