UNPKG

svelte-parse

Version:

An increidbly relaxed svelte-parser

604 lines (603 loc) 11.1 kB
{ "type": "root", "children": [ { "type": "svelteScript", "tagName": "script", "properties": [], "selfClosing": false, "children": [ { "type": "text", "value": "\n import { smiconed, smlabeled, smactioned } from '../../lib/elements/util';\n\n export let icon = '';\n export let loading = '';\n export let size = '';\n export let color = '';\n export let label = '';\n export let focus = false;\n export let fluid = false;\n export let error = false;\n export let disabled = false;\n export let inverted = false;\n export let transparent = false;\n\n $: iconed = smiconed(icon)\n $: labeled = smlabeled(label)\n $: actioned = smactioned(action)\n", "position": { "start": { "line": 1, "column": 9, "offset": 8 }, "end": { "line": 19, "column": 1, "offset": 519 } } } ], "position": { "start": { "line": 1, "column": 1, "offset": 0 }, "end": { "line": 19, "column": 10, "offset": 528 } } }, { "type": "text", "value": "\n\n", "position": { "start": { "line": 19, "column": 10, "offset": 528 }, "end": { "line": 21, "column": 1, "offset": 530 } } }, { "type": "svelteElement", "tagName": "div", "properties": [ { "type": "svelteProperty", "name": "class", "value": [ { "type": "text", "value": "ui", "position": { "start": { "line": 21, "column": 13, "offset": 542 }, "end": {} } }, { "type": "text", "value": " ", "position": { "start": { "line": 21, "column": 15, "offset": 544 }, "end": { "line": 21, "column": 16, "offset": 545 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 21, "column": 16, "offset": 545 }, "end": { "line": 21, "column": 24, "offset": 553 } }, "expression": { "type": "svelteExpression", "value": "iconed", "position": { "start": { "line": 21, "column": 17, "offset": 546 }, "end": { "line": 21, "column": 23, "offset": 552 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 21, "column": 24, "offset": 553 }, "end": { "line": 21, "column": 25, "offset": 554 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 21, "column": 25, "offset": 554 }, "end": { "line": 21, "column": 32, "offset": 561 } }, "expression": { "type": "svelteExpression", "value": "color", "position": { "start": { "line": 21, "column": 26, "offset": 555 }, "end": { "line": 21, "column": 31, "offset": 560 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 21, "column": 32, "offset": 561 }, "end": { "line": 21, "column": 33, "offset": 562 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 21, "column": 33, "offset": 562 }, "end": { "line": 21, "column": 42, "offset": 571 } }, "expression": { "type": "svelteExpression", "value": "loading", "position": { "start": { "line": 21, "column": 34, "offset": 563 }, "end": { "line": 21, "column": 41, "offset": 570 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 21, "column": 42, "offset": 571 }, "end": { "line": 21, "column": 43, "offset": 572 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 21, "column": 43, "offset": 572 }, "end": { "line": 21, "column": 49, "offset": 578 } }, "expression": { "type": "svelteExpression", "value": "size", "position": { "start": { "line": 21, "column": 44, "offset": 573 }, "end": { "line": 21, "column": 48, "offset": 577 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 21, "column": 49, "offset": 578 }, "end": { "line": 21, "column": 50, "offset": 579 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 21, "column": 50, "offset": 579 }, "end": { "line": 21, "column": 59, "offset": 588 } }, "expression": { "type": "svelteExpression", "value": "labeled", "position": { "start": { "line": 21, "column": 51, "offset": 580 }, "end": { "line": 21, "column": 58, "offset": 587 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 21, "column": 59, "offset": 588 }, "end": { "line": 21, "column": 60, "offset": 589 } } }, { "type": "svelteDynamicContent", "position": { "start": { "line": 21, "column": 60, "offset": 589 }, "end": { "line": 21, "column": 70, "offset": 599 } }, "expression": { "type": "svelteExpression", "value": "actioned", "position": { "start": { "line": 21, "column": 61, "offset": 590 }, "end": { "line": 21, "column": 69, "offset": 598 } } } }, { "type": "text", "value": " ", "position": { "start": { "line": 21, "column": 70, "offset": 599 }, "end": {} } }, { "type": "text", "value": "input", "position": { "start": { "line": 21, "column": 71, "offset": 600 }, "end": { "line": 21, "column": 77, "offset": 606 } } } ], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 21, "column": 6, "offset": 535 }, "end": { "line": 21, "column": 77, "offset": 606 } } }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 21, "column": 78, "offset": 607 }, "end": { "line": 21, "column": 91, "offset": 620 } }, "specifier": "loading" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 21, "column": 92, "offset": 621 }, "end": { "line": 21, "column": 106, "offset": 635 } }, "specifier": "disabled" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 21, "column": 107, "offset": 636 }, "end": { "line": 21, "column": 118, "offset": 647 } }, "specifier": "error" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 22, "column": 1, "offset": 649 }, "end": { "line": 22, "column": 15, "offset": 663 } }, "specifier": "inverted" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 22, "column": 16, "offset": 664 }, "end": { "line": 22, "column": 27, "offset": 675 } }, "specifier": "fluid" }, { "type": "svelteDirective", "name": "class", "value": [], "modifiers": [], "shorthand": "none", "position": { "start": { "line": 22, "column": 28, "offset": 676 }, "end": { "line": 22, "column": 45, "offset": 693 } }, "specifier": "transparent" } ], "selfClosing": false, "children": [ { "type": "text", "value": "\n ", "position": { "start": { "line": 22, "column": 46, "offset": 694 }, "end": { "line": 23, "column": 5, "offset": 699 } } }, { "type": "svelteElement", "tagName": "slot", "properties": [], "selfClosing": false, "children": [], "position": { "start": { "line": 23, "column": 5, "offset": 699 }, "end": { "line": 23, "column": 18, "offset": 712 } } }, { "type": "text", "value": "\n", "position": { "start": { "line": 23, "column": 18, "offset": 712 }, "end": { "line": 24, "column": 1, "offset": 713 } } } ], "position": { "start": { "line": 21, "column": 1, "offset": 530 }, "end": { "line": 24, "column": 7, "offset": 719 } } } ], "position": { "start": { "column": 1, "line": 1, "offset": 0 }, "end": { "line": 24, "column": 7, "offset": 719 } } }