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/await-then-catch/output.json

170 lines
3.0 KiB

{
"html": {
"start": 0,
"end": 148,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 148,
"type": "AwaitBlock",
"expression": {
"type": "Identifier",
"start": 8,
"end": 18,
"name": "thePromise"
},
"value": "theValue",
7 years ago
"error": "theError",
"pending": {
"start": 19,
"end": 39,
7 years ago
"type": "PendingBlock",
"children": [
{
"start": 19,
"end": 21,
7 years ago
"type": "Text",
"raw": "\n\t",
7 years ago
"data": "\n\t"
},
{
"start": 21,
"end": 38,
7 years ago
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 24,
"end": 34,
7 years ago
"type": "Text",
"raw": "loading...",
7 years ago
"data": "loading..."
}
]
},
{
"start": 38,
"end": 39,
7 years ago
"type": "Text",
"raw": "\n",
7 years ago
"data": "\n"
}
],
"skip": false
7 years ago
},
"then": {
"start": 39,
"end": 88,
"type": "ThenBlock",
"children": [
{
"start": 55,
"end": 57,
"type": "Text",
"raw": "\n\t",
"data": "\n\t"
},
{
"start": 57,
"end": 87,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 60,
"end": 73,
"type": "Text",
"raw": "the value is ",
"data": "the value is "
},
{
"start": 73,
"end": 83,
"type": "MustacheTag",
"expression": {
"type": "Identifier",
"start": 74,
"end": 82,
"name": "theValue"
}
}
]
},
{
"start": 87,
"end": 88,
"type": "Text",
"raw": "\n",
"data": "\n"
}
],
"skip": false
},
"catch": {
"start": 88,
"end": 140,
"type": "CatchBlock",
"children": [
{
"start": 105,
"end": 107,
"type": "Text",
"raw": "\n\t",
"data": "\n\t"
},
{
"start": 107,
"end": 139,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 110,
"end": 117,
"type": "Text",
"raw": "oh no! ",
"data": "oh no! "
},
{
"start": 117,
"end": 135,
"type": "MustacheTag",
"expression": {
"type": "MemberExpression",
"start": 118,
"end": 134,
"object": {
"type": "Identifier",
"start": 118,
"end": 126,
"name": "theError"
},
"property": {
"type": "Identifier",
"start": 127,
"end": 134,
"name": "message"
},
"computed": false
}
}
]
},
{
"start": 139,
"end": 140,
"type": "Text",
"raw": "\n",
"data": "\n"
}
],
"skip": false
}
}
]
}
}