mirror of https://github.com/sveltejs/svelte
parent
72850e5ce9
commit
4e727ed900
@ -0,0 +1,13 @@
|
|||||||
|
{#if }
|
||||||
|
{:else if }
|
||||||
|
{:else }
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#each }
|
||||||
|
{/each}
|
||||||
|
|
||||||
|
{#snippet }
|
||||||
|
{/snippet}
|
||||||
|
|
||||||
|
{#snippet foo}
|
||||||
|
{/snippet}
|
||||||
@ -0,0 +1,107 @@
|
|||||||
|
{
|
||||||
|
"html": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"start": 0,
|
||||||
|
"end": 102,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"type": "IfBlock",
|
||||||
|
"start": 0,
|
||||||
|
"end": 33,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 5,
|
||||||
|
"end": 5,
|
||||||
|
"name": ""
|
||||||
|
},
|
||||||
|
"children": [],
|
||||||
|
"else": {
|
||||||
|
"type": "ElseBlock",
|
||||||
|
"start": 18,
|
||||||
|
"end": 28,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"type": "IfBlock",
|
||||||
|
"start": 18,
|
||||||
|
"end": 33,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 17,
|
||||||
|
"end": 17,
|
||||||
|
"name": ""
|
||||||
|
},
|
||||||
|
"children": [],
|
||||||
|
"else": {
|
||||||
|
"type": "ElseBlock",
|
||||||
|
"start": 27,
|
||||||
|
"end": 28,
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
"elseif": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 33,
|
||||||
|
"end": 35,
|
||||||
|
"raw": "\n\n",
|
||||||
|
"data": "\n\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "EachBlock",
|
||||||
|
"start": 35,
|
||||||
|
"end": 51,
|
||||||
|
"children": [],
|
||||||
|
"context": null,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 42,
|
||||||
|
"end": 42,
|
||||||
|
"name": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 51,
|
||||||
|
"end": 53,
|
||||||
|
"raw": "\n\n",
|
||||||
|
"data": "\n\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SnippetBlock",
|
||||||
|
"start": 53,
|
||||||
|
"end": 75,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 63,
|
||||||
|
"end": 63,
|
||||||
|
"name": ""
|
||||||
|
},
|
||||||
|
"parameters": [],
|
||||||
|
"children": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 75,
|
||||||
|
"end": 77,
|
||||||
|
"raw": "\n\n",
|
||||||
|
"data": "\n\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SnippetBlock",
|
||||||
|
"start": 77,
|
||||||
|
"end": 102,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 87,
|
||||||
|
"end": 90,
|
||||||
|
"name": "foo"
|
||||||
|
},
|
||||||
|
"parameters": [],
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
{#if }
|
||||||
|
{:else if }
|
||||||
|
{:else }
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#each }
|
||||||
|
{/each}
|
||||||
|
|
||||||
|
{#snippet }
|
||||||
|
{/snippet}
|
||||||
|
|
||||||
|
{#snippet foo}
|
||||||
|
{/snippet}
|
||||||
@ -0,0 +1,171 @@
|
|||||||
|
{
|
||||||
|
"css": null,
|
||||||
|
"js": [],
|
||||||
|
"start": 0,
|
||||||
|
"end": 102,
|
||||||
|
"type": "Root",
|
||||||
|
"fragment": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"type": "IfBlock",
|
||||||
|
"elseif": false,
|
||||||
|
"start": 0,
|
||||||
|
"end": 33,
|
||||||
|
"test": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 5,
|
||||||
|
"end": 5,
|
||||||
|
"name": ""
|
||||||
|
},
|
||||||
|
"consequent": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 6,
|
||||||
|
"end": 7,
|
||||||
|
"raw": "\n",
|
||||||
|
"data": "\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"alternate": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"start": 7,
|
||||||
|
"end": 33,
|
||||||
|
"type": "IfBlock",
|
||||||
|
"elseif": true,
|
||||||
|
"test": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 17,
|
||||||
|
"end": 17,
|
||||||
|
"name": ""
|
||||||
|
},
|
||||||
|
"consequent": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 18,
|
||||||
|
"end": 19,
|
||||||
|
"raw": "\n",
|
||||||
|
"data": "\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"alternate": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 27,
|
||||||
|
"end": 28,
|
||||||
|
"raw": "\n",
|
||||||
|
"data": "\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 33,
|
||||||
|
"end": 35,
|
||||||
|
"raw": "\n\n",
|
||||||
|
"data": "\n\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "EachBlock",
|
||||||
|
"start": 35,
|
||||||
|
"end": 51,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 42,
|
||||||
|
"end": 42,
|
||||||
|
"name": ""
|
||||||
|
},
|
||||||
|
"body": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 43,
|
||||||
|
"end": 44,
|
||||||
|
"raw": "\n",
|
||||||
|
"data": "\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"context": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 51,
|
||||||
|
"end": 53,
|
||||||
|
"raw": "\n\n",
|
||||||
|
"data": "\n\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SnippetBlock",
|
||||||
|
"start": 53,
|
||||||
|
"end": 75,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 63,
|
||||||
|
"end": 63,
|
||||||
|
"name": ""
|
||||||
|
},
|
||||||
|
"parameters": [],
|
||||||
|
"body": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 64,
|
||||||
|
"end": 65,
|
||||||
|
"raw": "\n",
|
||||||
|
"data": "\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 75,
|
||||||
|
"end": 77,
|
||||||
|
"raw": "\n\n",
|
||||||
|
"data": "\n\n"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "SnippetBlock",
|
||||||
|
"start": 77,
|
||||||
|
"end": 102,
|
||||||
|
"expression": {
|
||||||
|
"type": "Identifier",
|
||||||
|
"start": 87,
|
||||||
|
"end": 90,
|
||||||
|
"name": "foo"
|
||||||
|
},
|
||||||
|
"parameters": [],
|
||||||
|
"body": {
|
||||||
|
"type": "Fragment",
|
||||||
|
"nodes": [
|
||||||
|
{
|
||||||
|
"type": "Text",
|
||||||
|
"start": 91,
|
||||||
|
"end": 92,
|
||||||
|
"raw": "\n",
|
||||||
|
"data": "\n"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"options": null
|
||||||
|
}
|
||||||
Loading…
Reference in new issue