svelte-parse
Version:
An increidbly relaxed svelte-parser
91 lines (90 loc) • 1.35 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteElement",
"tagName": "a",
"properties": [
{
"type": "svelteProperty",
"name": "href",
"value": [
{
"type": "text",
"value": "https://www.google.com",
"position": {
"start": {
"line": 1,
"column": 9,
"offset": 8
},
"end": {
"line": 1,
"column": 31,
"offset": 30
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 1,
"column": 4,
"offset": 3
},
"end": {
"line": 1,
"column": 31,
"offset": 30
}
}
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "Google",
"position": {
"start": {
"line": 1,
"column": 32,
"offset": 31
},
"end": {
"line": 1,
"column": 38,
"offset": 37
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 42,
"offset": 41
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 42,
"offset": 41
}
}
}