Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Mar 3, 2024
1 parent 13dbec9 commit 81e4201
Show file tree
Hide file tree
Showing 10 changed files with 273 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1045,13 +1045,31 @@
"children": [
{
"type": "SvelteRenderTag",
"arguments": [],
"callee": {
"type": "Identifier",
"name": "children",
"expression": {
"type": "CallExpression",
"arguments": [],
"callee": {
"type": "Identifier",
"name": "children",
"range": [
227,
235
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 24
}
}
},
"optional": false,
"range": [
227,
235
237
],
"loc": {
"start": {
Expand All @@ -1060,7 +1078,7 @@
},
"end": {
"line": 14,
"column": 24
"column": 26
}
}
},
Expand Down Expand Up @@ -1341,32 +1359,50 @@
"children": [
{
"type": "SvelteRenderTag",
"arguments": [
{
"expression": {
"type": "CallExpression",
"arguments": [
{
"type": "Identifier",
"name": "d",
"range": [
311,
312
],
"loc": {
"start": {
"line": 19,
"column": 20
},
"end": {
"line": 19,
"column": 21
}
}
}
],
"callee": {
"type": "Identifier",
"name": "d",
"name": "row",
"range": [
311,
312
307,
310
],
"loc": {
"start": {
"line": 19,
"column": 20
"column": 16
},
"end": {
"line": 19,
"column": 21
"column": 19
}
}
}
],
"callee": {
"type": "Identifier",
"name": "row",
},
"optional": false,
"range": [
307,
310
313
],
"loc": {
"start": {
Expand All @@ -1375,7 +1411,7 @@
},
"end": {
"line": 19,
"column": 19
"column": 22
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3011,32 +3011,50 @@
"children": [
{
"type": "SvelteRenderTag",
"arguments": [
{
"expression": {
"type": "CallExpression",
"arguments": [
{
"type": "Identifier",
"name": "d",
"range": [
311,
312
],
"loc": {
"start": {
"line": 19,
"column": 20
},
"end": {
"line": 19,
"column": 21
}
}
}
],
"callee": {
"type": "Identifier",
"name": "d",
"name": "row",
"range": [
311,
312
307,
310
],
"loc": {
"start": {
"line": 19,
"column": 20
"column": 16
},
"end": {
"line": 19,
"column": 21
"column": 19
}
}
}
],
"callee": {
"type": "Identifier",
"name": "row",
},
"optional": false,
"range": [
307,
310
313
],
"loc": {
"start": {
Expand All @@ -3045,7 +3063,7 @@
},
"end": {
"line": 19,
"column": 19
"column": 22
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<table>
{#if children} <!-- children: (this: void) => unique symbol & { _: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\""; } -->
<thead>
<tr>{@render children()}</tr> <!-- children: (this: void) => unique symbol & { _: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\""; } -->
<tr>{@render children()}</tr> <!-- children(): unique symbol & { _: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\""; } -->
</thead>
{/if}
<tbody>
{#each data as d} <!-- data: any[], d: any -->
<tr>{@render row(d)}</tr> <!-- row: (this: void, args_0: any) => unique symbol & { _: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\""; }, d: any -->
<tr>{@render row(d)}</tr> <!-- row(d): unique symbol & { _: "functions passed to {@render ...} tags must use the `Snippet` type imported from \"svelte\""; } -->
{/each}
</tbody>
</table>
Original file line number Diff line number Diff line change
Expand Up @@ -1156,13 +1156,31 @@
"children": [
{
"type": "SvelteRenderTag",
"arguments": [],
"callee": {
"type": "Identifier",
"name": "children",
"expression": {
"type": "CallExpression",
"arguments": [],
"callee": {
"type": "Identifier",
"name": "children",
"range": [
236,
244
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 24
}
}
},
"optional": false,
"range": [
236,
244
246
],
"loc": {
"start": {
Expand All @@ -1171,7 +1189,7 @@
},
"end": {
"line": 14,
"column": 24
"column": 26
}
}
},
Expand Down Expand Up @@ -1452,32 +1470,50 @@
"children": [
{
"type": "SvelteRenderTag",
"arguments": [
{
"expression": {
"type": "CallExpression",
"arguments": [
{
"type": "Identifier",
"name": "d",
"range": [
320,
321
],
"loc": {
"start": {
"line": 19,
"column": 20
},
"end": {
"line": 19,
"column": 21
}
}
}
],
"callee": {
"type": "Identifier",
"name": "d",
"name": "row",
"range": [
320,
321
316,
319
],
"loc": {
"start": {
"line": 19,
"column": 20
"column": 16
},
"end": {
"line": 19,
"column": 21
"column": 19
}
}
}
],
"callee": {
"type": "Identifier",
"name": "row",
},
"optional": false,
"range": [
316,
319
322
],
"loc": {
"start": {
Expand All @@ -1486,7 +1522,7 @@
},
"end": {
"line": 19,
"column": 19
"column": 22
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3365,32 +3365,50 @@
"children": [
{
"type": "SvelteRenderTag",
"arguments": [
{
"expression": {
"type": "CallExpression",
"arguments": [
{
"type": "Identifier",
"name": "d",
"range": [
320,
321
],
"loc": {
"start": {
"line": 19,
"column": 20
},
"end": {
"line": 19,
"column": 21
}
}
}
],
"callee": {
"type": "Identifier",
"name": "d",
"name": "row",
"range": [
320,
321
316,
319
],
"loc": {
"start": {
"line": 19,
"column": 20
"column": 16
},
"end": {
"line": 19,
"column": 21
"column": 19
}
}
}
],
"callee": {
"type": "Identifier",
"name": "row",
},
"optional": false,
"range": [
316,
319
322
],
"loc": {
"start": {
Expand All @@ -3399,7 +3417,7 @@
},
"end": {
"line": 19,
"column": 19
"column": 22
}
}
},
Expand Down

0 comments on commit 81e4201

Please sign in to comment.