svelte-parse
Version:
An increidbly relaxed svelte-parser
106 lines (105 loc) • 1.55 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteScript",
"tagName": "script",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n import Button, { options } from '@sveltekit/ui/Button';\n",
"position": {
"start": {
"line": 1,
"column": 9,
"offset": 8
},
"end": {
"line": 3,
"column": 1,
"offset": 67
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 3,
"column": 10,
"offset": 76
}
}
},
{
"type": "text",
"value": "\n\n",
"position": {
"start": {
"line": 3,
"column": 10,
"offset": 76
},
"end": {
"line": 5,
"column": 1,
"offset": 78
}
}
},
{
"type": "svelteComponent",
"tagName": "Button",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "Basic Button",
"position": {
"start": {
"line": 5,
"column": 9,
"offset": 86
},
"end": {
"line": 5,
"column": 21,
"offset": 98
}
}
}
],
"position": {
"start": {
"line": 5,
"column": 1,
"offset": 78
},
"end": {
"line": 5,
"column": 30,
"offset": 107
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 5,
"column": 30,
"offset": 107
}
}
}