You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/parser/samples/self-reference/output.json

136 lines
2.4 KiB

{
"html": {
"start": 0,
"end": 57,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 57,
"type": "IfBlock",
"expression": {
"type": "BinaryExpression",
"start": 5,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 14
}
},
"left": {
"type": "Identifier",
"start": 5,
"end": 10,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 10
}
},
"name": "depth"
},
"operator": ">",
"right": {
"type": "Literal",
"start": 13,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 14
}
},
"value": 1,
"raw": "1"
}
},
"children": [
{
"start": 17,
"end": 51,
"type": "InlineComponent",
"name": "svelte:self",
"attributes": [
{
"start": 30,
"end": 49,
"type": "Attribute",
"name": "depth",
"value": [
{
"start": 37,
"end": 48,
"type": "MustacheTag",
"expression": {
"type": "BinaryExpression",
"start": 38,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 31
}
},
"left": {
"type": "Identifier",
"start": 38,
"end": 43,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 27
}
},
"name": "depth"
},
"operator": "-",
"right": {
"type": "Literal",
"start": 46,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 30
},
"end": {
"line": 2,
"column": 31
}
},
"value": 1,
"raw": "1"
}
}
}
]
}
],
"children": []
}
]
}
]
}
}