svelte-parse
Version:
An increidbly relaxed svelte-parser
141 lines (140 loc) • 2.53 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteScript",
"tagName": "script",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n import ContentSwitcher from '@sveltekit/ui/ContentSwitcher';\n import { Alert, Add, ArrowUp } from '@sveltekit/ui/Icons';\n\n const items = [\n {\n label: 'Tab 1',\n Icon: Alert\n },\n {\n label: 'Tab 2',\n Icon: Add\n },\n {\n label: 'Tab 3',\n Icon: ArrowUp\n }\n ]\n",
"position": {
"start": {
"line": 1,
"column": 9,
"offset": 8
},
"end": {
"line": 19,
"column": 1,
"offset": 314
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 19,
"column": 10,
"offset": 323
}
}
},
{
"type": "text",
"value": "\n\n",
"position": {
"start": {
"line": 19,
"column": 10,
"offset": 323
},
"end": {
"line": 21,
"column": 1,
"offset": 325
}
}
},
{
"type": "svelteComponent",
"tagName": "ContentSwitcher",
"properties": [
{
"type": "svelteProperty",
"name": "items",
"value": [
{
"type": "svelteDynamicContent",
"expression": {
"type": "svelteExpression",
"value": "items",
"position": {
"start": {
"line": 21,
"column": 19,
"offset": 343
},
"end": {
"line": 21,
"column": 24,
"offset": 348
}
}
},
"position": {
"start": {
"line": 21,
"column": 18,
"offset": 342
},
"end": {
"line": 21,
"column": 24,
"offset": 348
}
}
}
],
"modifiers": [],
"shorthand": "expression",
"position": {
"start": {
"line": 21,
"column": 18,
"offset": 342
},
"end": {
"line": 21,
"column": 24,
"offset": 348
}
}
}
],
"selfClosing": false,
"children": [],
"position": {
"start": {
"line": 21,
"column": 1,
"offset": 325
},
"end": {
"line": 21,
"column": 44,
"offset": 368
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 21,
"column": 44,
"offset": 368
}
}
}