svelte-parse
Version:
An increidbly relaxed svelte-parser
90 lines (89 loc) • 1.44 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteElement",
"tagName": "input",
"properties": [
{
"type": "svelteDirective",
"name": "use",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 1,
"column": 21,
"offset": 20
},
"end": {
"line": 1,
"column": 36,
"offset": 35
}
},
"expression": {
"type": "svelteExpression",
"value": "'tooltip msg'",
"position": {
"start": {
"line": 1,
"column": 22,
"offset": 21
},
"end": {
"line": 1,
"column": 35,
"offset": 34
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 1,
"column": 8,
"offset": 7
},
"end": {
"line": 1,
"column": 37,
"offset": 36
}
},
"specifier": "tooltip"
}
],
"selfClosing": true,
"children": [],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 38,
"offset": 37
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 38,
"offset": 37
}
}
}