UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

522 lines (521 loc) 9.37 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n export let size = '';\n export let color = '';\n export let speed = '';\n export let style = '';\n export let text = '';\n export let inline = false;\n export let centered = false;\n export let inverted = false;\n export let intermediate = false;\n export let active = true;\n export let disabled = false;\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 13, "column": 1, "offset": 339 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 13, "column": 10, "offset": 348 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 13, "column": 10, "offset": 348 }, "end": { "line": 15, "column": 1, "offset": 350 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "ui", "position": { "start": { "line": 15, "column": 13, "offset": 362 }, "end": {} } }, { "type": "text", "value": " ", "position": { "start": { "line": 15, "column": 15, "offset": 364 }, "end": { "line": 15, "column": 16, "offset": 365 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 15, "column": 16, "offset": 365 }, "end": { "line": 15, "column": 22, "offset": 371 } }, "expression": { "type": "svelteExpression", "value": "size", "position": { "start": { "line": 15, "column": 17, "offset": 366 }, "end": { "line": 15, "column": 21, "offset": 370 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 15, "column": 22, "offset": 371 }, "end": { "line": 15, "column": 23, "offset": 372 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 15, "column": 23, "offset": 372 }, "end": { "line": 15, "column": 30, "offset": 379 } }, "expression": { "type": "svelteExpression", "value": "speed", "position": { "start": { "line": 15, "column": 24, "offset": 373 }, "end": { "line": 15, "column": 29, "offset": 378 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 15, "column": 30, "offset": 379 }, "end": { "line": 15, "column": 31, "offset": 380 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 15, "column": 31, "offset": 380 }, "end": { "line": 15, "column": 38, "offset": 387 } }, "expression": { "type": "svelteExpression", "value": "style", "position": { "start": { "line": 15, "column": 32, "offset": 381 }, "end": { "line": 15, "column": 37, "offset": 386 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 15, "column": 38, "offset": 387 }, "end": { "line": 15, "column": 39, "offset": 388 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 15, "column": 39, "offset": 388 }, "end": { "line": 15, "column": 46, "offset": 395 } }, "expression": { "type": "svelteExpression", "value": "color", "position": { "start": { "line": 15, "column": 40, "offset": 389 }, "end": { "line": 15, "column": 45, "offset": 394 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 15, "column": 46, "offset": 395 }, "end": {} } }, { "type": "text", "value": "loader", "position": { "start": { "line": 15, "column": 47, "offset": 396 }, "end": { "line": 15, "column": 54, "offset": 403 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 15, "column": 6, "offset": 355 }, "end": { "line": 15, "column": 54, "offset": 403 } } }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 15, "column": 55, "offset": 404 }, "end": { "line": 15, "column": 73, "offset": 422 } }, "specifier": "intermediate" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 15, "column": 74, "offset": 423 }, "end": { "line": 15, "column": 86, "offset": 435 } }, "specifier": "inline" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 15, "column": 87, "offset": 436 }, "end": { "line": 15, "column": 101, "offset": 450 } }, "specifier": "centered" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 16, "column": 1, "offset": 451 }, "end": { "line": 16, "column": 13, "offset": 463 } }, "specifier": "active" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 16, "column": 14, "offset": 464 }, "end": { "line": 16, "column": 28, "offset": 478 } }, "specifier": "disabled" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 16, "column": 29, "offset": 479 }, "end": { "line": 16, "column": 43, "offset": 493 } }, "specifier": "inverted" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 16, "column": 44, "offset": 494 }, "end": { "line": 17, "column": 5, "offset": 499 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 17, "column": 5, "offset": 499 }, "end": { "line": 17, "column": 11, "offset": 505 } }, "expression": { "type": "svelteExpression", "value": "text", "position": { "start": { "line": 17, "column": 6, "offset": 500 }, "end": { "line": 17, "column": 10, "offset": 504 } } } }, { "type": "text", "value": "\n", "position": { "start": { "line": 17, "column": 11, "offset": 505 }, "end": { "line": 18, "column": 1, "offset": 506 } } } ], "position": { "start": { "line": 15, "column": 1, "offset": 350 }, "end": { "line": 18, "column": 7, "offset": 512 } } } ], "position": { "start": { "column": 1, "line": 1, "offset": 0 }, "end": { "line": 18, "column": 7, "offset": 512 } } }