Create new
Bindings
Transitions
Animations
Easing
Component composition
Context API
Special elements
Module context
Debugging
Miscellaneous
App.svelte
createSamples.js
runes
This component is not in runes mode.
To enable runes mode, either start using runes in your code, or add the following to the top of your component:
<svelte:options runes />999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
›
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
<script>
import { readable } from 'svelte/store';
import { createTable, Subscribe, Render } from 'svelte-headless-table@0.17.1';
import { addSortBy } from 'svelte-headless-table@0.17.1/plugins';
import { createSamples } from './createSamples';
const data = readable(createSamples(30));
const table = createTable(data, {
sort: addSortBy(),
});
const columns = table.createColumns([
table.group({
header: 'Name',
columns: [
table.column({
header: 'First Name',
accessor: 'firstName',
}),
table.column({
header: 'Last Name',
accessor: 'lastName',
}),
],
}),
table.group({
header: 'Info',
columns: [
table.column({
header: 'Age',
accessor: 'age',
}),
table.column({
header: 'Status',
accessor: 'status',
}),
table.column({
header: 'Visits',
accessor: 'visits',
}),
table.column({
header: 'Profile Progress',
accessor: 'progress',
}),
],
}),
]);
const { headerRows, rows, tableAttrs, tableBodyAttrs } = table.createViewModel(columns);
</script>
<table {...$tableAttrs}>
<thead>
{#each $headerRows as headerRow (headerRow.id)}
<Subscribe rowAttrs={headerRow.attrs()} let:rowAttrs>
<tr {...rowAttrs}>
{#each headerRow.cells as cell (cell.id)}
<Subscribe attrs={cell.attrs()} let:attrs props={cell.props()} let:props>
<th {...attrs} >
<button on:click={props.sort.toggle}>
<Render of={cell.render()} />
{#if props.sort.order === 'asc'}
⬇️
{:else if props.sort.order === 'desc'}
⬆️
{/if}
</button>
</th>
</Subscribe>
{/each}
</tr>
</Subscribe>
{/each}
</thead>
<tbody {...$tableBodyAttrs}>
{#each $rows as row (row.id)}
<Subscribe rowAttrs={row.attrs()} let:rowAttrs>
<tr {...rowAttrs}>
{#each row.cells as cell (cell.id)}
<Subscribe attrs={cell.attrs()} let:attrs>
<td {...attrs}>
<Render of={cell.render()} />
</td>
</Subscribe>
{/each}
</tr>
</Subscribe>
{/each}
</tbody>
</table>
<style>
table {
border-spacing: 0;
border-top: 1px solid black;
border-left: 1px solid black;
}
th, td {
border-bottom: 1px solid black;
border-right: 1px solid black;
padding: 0.5rem;
}
</style>
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
›
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
⌄
import "svelte/internal/disclose-version";
import "svelte/internal/flags/legacy";
import * as $ from "svelte/internal/client";
import { readable } from 'svelte/store';
import { createTable, Subscribe, Render } from 'svelte-headless-table@0.17.1';
import { addSortBy } from 'svelte-headless-table@0.17.1/plugins';
import { createSamples } from './createSamples';
var root_4 = $.template(`<th><button><!> <!></button></th>`);
var root_2 = $.template(`<tr></tr>`);
var root_11 = $.template(`<td><!></td>`);
var root_9 = $.template(`<tr></tr>`);
var root = $.template(`<table><thead></thead><tbody></tbody></table>`);
export default function App($$anchor, $$props) {
$.push($$props, false);
const $$stores = $.setup_stores();
const $tableAttrs = () => $.store_get(tableAttrs, "$tableAttrs", $$stores);
const $headerRows = () => $.store_get(headerRows, "$headerRows", $$stores);
const $tableBodyAttrs = () => $.store_get(tableBodyAttrs, "$tableBodyAttrs", $$stores);
const $rows = () => $.store_get(rows, "$rows", $$stores);
const data = readable(createSamples(30));
const table = createTable(data, { sort: addSortBy() });
const columns = table.createColumns([
table.group({
header: 'Name',
columns: [
table.column({ header: 'First Name', accessor: 'firstName' }),
table.column({ header: 'Last Name', accessor: 'lastName' })
]
}),
table.group({
header: 'Info',
columns: [
table.column({ header: 'Age', accessor: 'age' }),
table.column({ header: 'Status', accessor: 'status' }),
table.column({ header: 'Visits', accessor: 'visits' }),
table.column({
header: 'Profile Progress',
accessor: 'progress'
})
]
})
]);
const {
headerRows,
rows,
tableAttrs,
tableBodyAttrs
} = table.createViewModel(columns);
$.init();
var table_1 = root();
let attributes;
var thead = $.child(table_1);
$.each(thead, 5, $headerRows, (headerRow) => headerRow.id, ($$anchor, headerRow) => {
var rowAttrs_1 = $.derived_safe_equal(() => $.get(headerRow).attrs());
Subscribe($$anchor, {
get rowAttrs() {
return $.get(rowAttrs_1);
},
children: $.invalid_default_snippet,
$$slots: {
default: ($$anchor, $$slotProps) => {
const rowAttrs = $.derived_safe_equal(() => $$slotProps.rowAttrs);
var tr = root_2();
let attributes_1;
$.each(tr, 5, () => $.get(headerRow).cells, (cell) => cell.id, ($$anchor, cell) => {
var attrs_1 = $.derived_safe_equal(() => $.get(cell).attrs());
var props_1 = $.derived_safe_equal(() => $.get(cell).props());
Subscribe($$anchor, {
get attrs() {
return $.get(attrs_1);
},
get props() {
return $.get(props_1);
},
children: $.invalid_default_snippet,
$$slots: {
default: ($$anchor, $$slotProps) => {
const attrs = $.derived_safe_equal(() => $$slotProps.attrs);
const props = $.derived_safe_equal(() => $$slotProps.props);
var th = root_4();
let attributes_2;
var button = $.child(th);
var node = $.child(button);
var of = $.derived_safe_equal(() => $.get(cell).render());
Render(node, {
get of() {
return $.get(of);
}
});
var node_1 = $.sibling(node, 2);
{
var consequent = ($$anchor) => {
var text = $.text("⬇️");
$.append($$anchor, text);
};
var alternate = ($$anchor) => {
var fragment_2 = $.comment();
var node_2 = $.first_child(fragment_2);
{
var consequent_1 = ($$anchor) => {
var text_1 = $.text("⬆️");
$.append($$anchor, text_1);
};
$.if(
node_2,
($$render) => {
if ($.get(props).sort.order === 'desc') $$render(consequent_1);
},
true
);
}
$.append($$anchor, fragment_2);
};
$.if(node_1, ($$render) => {
if ($.get(props).sort.order === 'asc') $$render(consequent); else $$render(alternate, false);
});
}
$.reset(button);
$.reset(th);
$.template_effect(() => attributes_2 = $.set_attributes(th, attributes_2, { ...$.get(attrs) }, "svelte-13nmc7k"));
$.event("click", button, function (...$$args) {
$.get(props).sort.toggle?.apply(this, $$args);
});
$.append($$anchor, th);
}
}
});
});
$.reset(tr);
$.template_effect(() => attributes_1 = $.set_attributes(tr, attributes_1, { ...$.get(rowAttrs) }, "svelte-13nmc7k"));
$.append($$anchor, tr);
}
}
});
});
$.reset(thead);
var tbody = $.sibling(thead);
let attributes_3;
$.each(tbody, 5, $rows, (row) => row.id, ($$anchor, row) => {
var rowAttrs_2 = $.derived_safe_equal(() => $.get(row).attrs());
result = svelte.compile(source, {
generate: ,
});99
1
2
3
4
5
6
7
8
9
10
11
12
›
table.svelte-13nmc7k {
border-spacing: 0;
border-top: 1px solid black;
border-left: 1px solid black;
}
th.svelte-13nmc7k, td.svelte-13nmc7k {
border-bottom: 1px solid black;
border-right: 1px solid black;
padding: 0.5rem;
}
Root {
css: StyleSheet {...}
- type: "StyleSheet"
- start: 2270
- end: 2481
- attributes: []
children: [...] (2)
Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 2279
- end: 2284
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 2279
- end: 2284
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
TypeSelector {...}
- type: "TypeSelector"
- name: "table"
- start: 2279
- end: 2284
}
]- start: 2279
- end: 2284
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 2285
- end: 2373
children: [...] (3)
Declaration {...}
- type: "Declaration"
- start: 2289
- end: 2306
- property: "border-spacing"
- value: "0"
} Declaration {...}
- type: "Declaration"
- start: 2310
- end: 2337
- property: "border-top"
- value: "1px solid black"
} Declaration {...}
- type: "Declaration"
- start: 2341
- end: 2369
- property: "border-left"
- value: "1px solid black"
}
]
}- start: 2279
- end: 2373
} Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 2375
- end: 2381
children: [...] (2)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 2375
- end: 2377
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
TypeSelector {...}
- type: "TypeSelector"
- name: "th"
- start: 2375
- end: 2377
}
]- start: 2375
- end: 2377
}
]
} ComplexSelector {...}
- type: "ComplexSelector"
- start: 2379
- end: 2381
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
TypeSelector {...}
- type: "TypeSelector"
- name: "td"
- start: 2379
- end: 2381
}
]- start: 2379
- end: 2381
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 2382
- end: 2472
children: [...] (3)
Declaration {...}
- type: "Declaration"
- start: 2386
- end: 2416
- property: "border-bottom"
- value: "1px solid black"
} Declaration {...}
- type: "Declaration"
- start: 2420
- end: 2449
- property: "border-right"
- value: "1px solid black"
} Declaration {...}
- type: "Declaration"
- start: 2453
- end: 2468
- property: "padding"
- value: "0.5rem"
}
]
}- start: 2375
- end: 2472
}
]content: {...}
- start: 2277
- end: 2473
- styles: "\n\ttable {\n\t\tborder-spacing: 0;\n\t\tborder-top: 1px solid black;\n\t\tborder-left: 1px solid black;\n\t}\n\tth, td {\n\t\tborder-bottom: 1px solid black;\n\t\tborder-right: 1px solid black;\n\t\tpadding: 0.5rem;\n\t}\n"
- comment: null
}
}- js: []
- start: 1238
- end: 2268
- type: "Root"
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1236
- end: 1238
- raw: "\n\n"
- data: "\n\n"
} RegularElement {...}
- type: "RegularElement"
- start: 1238
- end: 2268
- name: "table"
attributes: [...] (1)
SpreadAttribute {...}
- type: "SpreadAttribute"
- start: 1245
- end: 1261
expression: Identifier {...}
- type: "Identifier"
- start: 1249
- end: 1260
loc: {...}
start: {...}
- line: 54
- column: 11
}end: {...}
- line: 54
- column: 22
}
}- name: "$tableAttrs"
}
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (5)
Text {...}
- type: "Text"
- start: 1262
- end: 1265
- raw: "\n "
- data: "\n "
} RegularElement {...}
- type: "RegularElement"
- start: 1265
- end: 1881
- name: "thead"
- attributes: []
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1272
- end: 1275
- raw: "\n\t\t"
- data: "\n\t\t"
} EachBlock {...}
- type: "EachBlock"
- start: 1275
- end: 1871
expression: Identifier {...}
- type: "Identifier"
- start: 1282
- end: 1293
loc: {...}
start: {...}
- line: 56
- column: 9
}end: {...}
- line: 56
- column: 20
}
}- name: "$headerRows"
}body: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1322
- end: 1326
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
} Component {...}
- type: "Component"
- start: 1326
- end: 1861
- name: "Subscribe"
attributes: [...] (2)
Attribute {...}
- type: "Attribute"
- start: 1337
- end: 1365
- name: "rowAttrs"
value: ExpressionTag {...}
- type: "ExpressionTag"
- start: 1346
- end: 1365
expression: CallExpression {...}
- type: "CallExpression"
- start: 1347
- end: 1364
loc: {...}
start: {...}
- line: 57
- column: 24
}end: {...}
- line: 57
- column: 41
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1347
- end: 1362
loc: {...}
start: {...}
- line: 57
- column: 24
}end: {...}
- line: 57
- column: 39
}
}object: Identifier {...}
- type: "Identifier"
- start: 1347
- end: 1356
loc: {...}
start: {...}
- line: 57
- column: 24
}end: {...}
- line: 57
- column: 33
}
}- name: "headerRow"
}property: Identifier {...}
- type: "Identifier"
- start: 1357
- end: 1362
loc: {...}
start: {...}
- line: 57
- column: 34
}end: {...}
- line: 57
- column: 39
}
}- name: "attrs"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
} LetDirective {...}
- start: 1366
- end: 1378
- type: "LetDirective"
- name: "rowAttrs"
- expression: null
- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1379
- end: 1384
- raw: "\n\t\t\t\t"
- data: "\n\t\t\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1384
- end: 1845
- name: "tr"
attributes: [...] (1)
SpreadAttribute {...}
- type: "SpreadAttribute"
- start: 1388
- end: 1401
expression: Identifier {...}
- type: "Identifier"
- start: 1392
- end: 1400
loc: {...}
start: {...}
- line: 58
- column: 12
}end: {...}
- line: 58
- column: 20
}
}- name: "rowAttrs"
}
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1402
- end: 1408
- raw: "\n\t\t\t\t\t"
- data: "\n\t\t\t\t\t"
} EachBlock {...}
- type: "EachBlock"
- start: 1408
- end: 1835
expression: MemberExpression {...}
- type: "MemberExpression"
- start: 1415
- end: 1430
loc: {...}
start: {...}
- line: 59
- column: 12
}end: {...}
- line: 59
- column: 27
}
}object: Identifier {...}
- type: "Identifier"
- start: 1415
- end: 1424
loc: {...}
start: {...}
- line: 59
- column: 12
}end: {...}
- line: 59
- column: 21
}
}- name: "headerRow"
}property: Identifier {...}
- type: "Identifier"
- start: 1425
- end: 1430
loc: {...}
start: {...}
- line: 59
- column: 22
}end: {...}
- line: 59
- column: 27
}
}- name: "cells"
}- computed: false
- optional: false
}body: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1449
- end: 1456
- raw: "\n\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t"
} Component {...}
- type: "Component"
- start: 1456
- end: 1822
- name: "Subscribe"
attributes: [...] (4)
Attribute {...}
- type: "Attribute"
- start: 1467
- end: 1487
- name: "attrs"
value: ExpressionTag {...}
- type: "ExpressionTag"
- start: 1473
- end: 1487
expression: CallExpression {...}
- type: "CallExpression"
- start: 1474
- end: 1486
loc: {...}
start: {...}
- line: 60
- column: 24
}end: {...}
- line: 60
- column: 36
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1474
- end: 1484
loc: {...}
start: {...}
- line: 60
- column: 24
}end: {...}
- line: 60
- column: 34
}
}object: Identifier {...}
- type: "Identifier"
- start: 1474
- end: 1478
loc: {...}
start: {...}
- line: 60
- column: 24
}end: {...}
- line: 60
- column: 28
}
}- name: "cell"
}property: Identifier {...}
- type: "Identifier"
- start: 1479
- end: 1484
loc: {...}
start: {...}
- line: 60
- column: 29
}end: {...}
- line: 60
- column: 34
}
}- name: "attrs"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
} LetDirective {...}
- start: 1488
- end: 1497
- type: "LetDirective"
- name: "attrs"
- expression: null
- modifiers: []
} Attribute {...}
- type: "Attribute"
- start: 1498
- end: 1518
- name: "props"
value: ExpressionTag {...}
- type: "ExpressionTag"
- start: 1504
- end: 1518
expression: CallExpression {...}
- type: "CallExpression"
- start: 1505
- end: 1517
loc: {...}
start: {...}
- line: 60
- column: 55
}end: {...}
- line: 60
- column: 67
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1505
- end: 1515
loc: {...}
start: {...}
- line: 60
- column: 55
}end: {...}
- line: 60
- column: 65
}
}object: Identifier {...}
- type: "Identifier"
- start: 1505
- end: 1509
loc: {...}
start: {...}
- line: 60
- column: 55
}end: {...}
- line: 60
- column: 59
}
}- name: "cell"
}property: Identifier {...}
- type: "Identifier"
- start: 1510
- end: 1515
loc: {...}
start: {...}
- line: 60
- column: 60
}end: {...}
- line: 60
- column: 65
}
}- name: "props"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
} LetDirective {...}
- start: 1519
- end: 1528
- type: "LetDirective"
- name: "props"
- expression: null
- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1529
- end: 1537
- raw: "\n\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1537
- end: 1803
- name: "th"
attributes: [...] (1)
SpreadAttribute {...}
- type: "SpreadAttribute"
- start: 1541
- end: 1551
expression: Identifier {...}
- type: "Identifier"
- start: 1545
- end: 1550
loc: {...}
start: {...}
- line: 61
- column: 15
}end: {...}
- line: 61
- column: 20
}
}- name: "attrs"
}
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1553
- end: 1562
- raw: "\n\t\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1562
- end: 1790
- name: "button"
attributes: [...] (1)
OnDirective {...}
- start: 1570
- end: 1598
- type: "OnDirective"
- name: "click"
expression: MemberExpression {...}
- type: "MemberExpression"
- start: 1580
- end: 1597
loc: {...}
start: {...}
- line: 62
- column: 26
}end: {...}
- line: 62
- column: 43
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 1580
- end: 1590
loc: {...}
start: {...}
- line: 62
- column: 26
}end: {...}
- line: 62
- column: 36
}
}object: Identifier {...}
- type: "Identifier"
- start: 1580
- end: 1585
loc: {...}
start: {...}
- line: 62
- column: 26
}end: {...}
- line: 62
- column: 31
}
}- name: "props"
}property: Identifier {...}
- type: "Identifier"
- start: 1586
- end: 1590
loc: {...}
start: {...}
- line: 62
- column: 32
}end: {...}
- line: 62
- column: 36
}
}- name: "sort"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1591
- end: 1597
loc: {...}
start: {...}
- line: 62
- column: 37
}end: {...}
- line: 62
- column: 43
}
}- name: "toggle"
}- computed: false
- optional: false
}- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (5)
Text {...}
- type: "Text"
- start: 1599
- end: 1609
- raw: "\n\t\t\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t\t\t"
} Component {...}
- type: "Component"
- start: 1609
- end: 1638
- name: "Render"
attributes: [...] (1)
Attribute {...}
- type: "Attribute"
- start: 1617
- end: 1635
- name: "of"
value: ExpressionTag {...}
- type: "ExpressionTag"
- start: 1620
- end: 1635
expression: CallExpression {...}
- type: "CallExpression"
- start: 1621
- end: 1634
loc: {...}
start: {...}
- line: 63
- column: 21
}end: {...}
- line: 63
- column: 34
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1621
- end: 1632
loc: {...}
start: {...}
- line: 63
- column: 21
}end: {...}
- line: 63
- column: 32
}
}object: Identifier {...}
- type: "Identifier"
- start: 1621
- end: 1625
loc: {...}
start: {...}
- line: 63
- column: 21
}end: {...}
- line: 63
- column: 25
}
}- name: "cell"
}property: Identifier {...}
- type: "Identifier"
- start: 1626
- end: 1632
loc: {...}
start: {...}
- line: 63
- column: 26
}end: {...}
- line: 63
- column: 32
}
}- name: "render"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 1638
- end: 1649
- raw: " "
- data: " "
} IfBlock {...}
- type: "IfBlock"
- elseif: false
- start: 1649
- end: 1772
test: BinaryExpression {...}
- type: "BinaryExpression"
- start: 1654
- end: 1680
loc: {...}
start: {...}
- line: 64
- column: 15
}end: {...}
- line: 64
- column: 41
}
}left: MemberExpression {...}
- type: "MemberExpression"
- start: 1654
- end: 1670
loc: {...}
start: {...}
- line: 64
- column: 15
}end: {...}
- line: 64
- column: 31
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 1654
- end: 1664
loc: {...}
start: {...}
- line: 64
- column: 15
}end: {...}
- line: 64
- column: 25
}
}object: Identifier {...}
- type: "Identifier"
- start: 1654
- end: 1659
loc: {...}
start: {...}
- line: 64
- column: 15
}end: {...}
- line: 64
- column: 20
}
}- name: "props"
}property: Identifier {...}
- type: "Identifier"
- start: 1660
- end: 1664
loc: {...}
start: {...}
- line: 64
- column: 21
}end: {...}
- line: 64
- column: 25
}
}- name: "sort"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1665
- end: 1670
loc: {...}
start: {...}
- line: 64
- column: 26
}end: {...}
- line: 64
- column: 31
}
}- name: "order"
}- computed: false
- optional: false
}- operator: "==="
right: Literal {...}
- type: "Literal"
- start: 1675
- end: 1680
loc: {...}
start: {...}
- line: 64
- column: 36
}end: {...}
- line: 64
- column: 41
}
}- value: "asc"
- raw: "'asc'"
}
}consequent: Fragment {...}
- type: "Fragment"
nodes: [...] (1)
Text {...}
- type: "Text"
- start: 1681
- end: 1706
- raw: "⬇️"
- data: "⬇️"
}
]
}alternate: Fragment {...}
- type: "Fragment"
nodes: [...] (1)
IfBlock {...}
- start: 1706
- end: 1772
- type: "IfBlock"
- elseif: true
test: BinaryExpression {...}
- type: "BinaryExpression"
- start: 1716
- end: 1743
loc: {...}
start: {...}
- line: 66
- column: 19
}end: {...}
- line: 66
- column: 46
}
}left: MemberExpression {...}
- type: "MemberExpression"
- start: 1716
- end: 1732
loc: {...}
start: {...}
- line: 66
- column: 19
}end: {...}
- line: 66
- column: 35
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 1716
- end: 1726
loc: {...}
start: {...}
- line: 66
- column: 19
}end: {...}
- line: 66
- column: 29
}
}object: Identifier {...}
- type: "Identifier"
- start: 1716
- end: 1721
loc: {...}
start: {...}
- line: 66
- column: 19
}end: {...}
- line: 66
- column: 24
}
}- name: "props"
}property: Identifier {...}
- type: "Identifier"
- start: 1722
- end: 1726
loc: {...}
start: {...}
- line: 66
- column: 25
}end: {...}
- line: 66
- column: 29
}
}- name: "sort"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1727
- end: 1732
loc: {...}
start: {...}
- line: 66
- column: 30
}end: {...}
- line: 66
- column: 35
}
}- name: "order"
}- computed: false
- optional: false
}- operator: "==="
right: Literal {...}
- type: "Literal"
- start: 1737
- end: 1743
loc: {...}
start: {...}
- line: 66
- column: 40
}end: {...}
- line: 66
- column: 46
}
}- value: "desc"
- raw: "'desc'"
}
}consequent: Fragment {...}
- type: "Fragment"
nodes: [...] (1)
Text {...}
- type: "Text"
- start: 1744
- end: 1767
- raw: "⬆️"
- data: "⬆️"
}
]
}- alternate: null
}
]
}
} Text {...}
- type: "Text"
- start: 1772
- end: 1781
- raw: "\n\t\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1790
- end: 1798
- raw: "\n\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1803
- end: 1810
- raw: "\n\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1822
- end: 1828
- raw: "\n\t\t\t\t\t"
- data: "\n\t\t\t\t\t"
}
]
}context: Identifier {...}
- type: "Identifier"
- name: "cell"
- start: 1434
loc: {...}
start: {...}
- line: 59
- column: 31
- character: 1434
}end: {...}
- line: 59
- column: 35
- character: 1438
}
}- end: 1438
- typeAnnotation: undefined
}- index: undefined
key: MemberExpression {...}
- type: "MemberExpression"
- start: 1440
- end: 1447
loc: {...}
start: {...}
- line: 59
- column: 37
}end: {...}
- line: 59
- column: 44
}
}object: Identifier {...}
- type: "Identifier"
- start: 1440
- end: 1444
loc: {...}
start: {...}
- line: 59
- column: 37
}end: {...}
- line: 59
- column: 41
}
}- name: "cell"
}property: Identifier {...}
- type: "Identifier"
- start: 1445
- end: 1447
loc: {...}
start: {...}
- line: 59
- column: 42
}end: {...}
- line: 59
- column: 44
}
}- name: "id"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 1835
- end: 1840
- raw: "\n\t\t\t\t"
- data: "\n\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1845
- end: 1849
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1861
- end: 1864
- raw: "\n\t\t"
- data: "\n\t\t"
}
]
}context: Identifier {...}
- type: "Identifier"
- name: "headerRow"
- start: 1297
loc: {...}
start: {...}
- line: 56
- column: 24
- character: 1297
}end: {...}
- line: 56
- column: 33
- character: 1306
}
}- end: 1306
- typeAnnotation: undefined
}- index: undefined
key: MemberExpression {...}
- type: "MemberExpression"
- start: 1308
- end: 1320
loc: {...}
start: {...}
- line: 56
- column: 35
}end: {...}
- line: 56
- column: 47
}
}object: Identifier {...}
- type: "Identifier"
- start: 1308
- end: 1317
loc: {...}
start: {...}
- line: 56
- column: 35
}end: {...}
- line: 56
- column: 44
}
}- name: "headerRow"
}property: Identifier {...}
- type: "Identifier"
- start: 1318
- end: 1320
loc: {...}
start: {...}
- line: 56
- column: 45
}end: {...}
- line: 56
- column: 47
}
}- name: "id"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 1871
- end: 1873
- raw: "\n\t"
- data: "\n\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1881
- end: 1883
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 1883
- end: 2259
- name: "tbody"
attributes: [...] (1)
SpreadAttribute {...}
- type: "SpreadAttribute"
- start: 1890
- end: 1910
expression: Identifier {...}
- type: "Identifier"
- start: 1894
- end: 1909
loc: {...}
start: {...}
- line: 77
- column: 12
}end: {...}
- line: 77
- column: 27
}
}- name: "$tableBodyAttrs"
}
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1911
- end: 1914
- raw: "\n\t\t"
- data: "\n\t\t"
} EachBlock {...}
- type: "EachBlock"
- start: 1914
- end: 2249
expression: Identifier {...}
- type: "Identifier"
- start: 1921
- end: 1926
loc: {...}
start: {...}
- line: 78
- column: 9
}end: {...}
- line: 78
- column: 14
}
}- name: "$rows"
}body: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1943
- end: 1947
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
} Component {...}
- type: "Component"
- start: 1947
- end: 2239
- name: "Subscribe"
attributes: [...] (2)
Attribute {...}
- type: "Attribute"
- start: 1958
- end: 1980
- name: "rowAttrs"
value: ExpressionTag {...}
- type: "ExpressionTag"
- start: 1967
- end: 1980
expression: CallExpression {...}
- type: "CallExpression"
- start: 1968
- end: 1979
loc: {...}
start: {...}
- line: 79
- column: 24
}end: {...}
- line: 79
- column: 35
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1968
- end: 1977
loc: {...}
start: {...}
- line: 79
- column: 24
}end: {...}
- line: 79
- column: 33
}
}object: Identifier {...}
- type: "Identifier"
- start: 1968
- end: 1971
loc: {...}
start: {...}
- line: 79
- column: 24
}end: {...}
- line: 79
- column: 27
}
}- name: "row"
}property: Identifier {...}
- type: "Identifier"
- start: 1972
- end: 1977
loc: {...}
start: {...}
- line: 79
- column: 28
}end: {...}
- line: 79
- column: 33
}
}- name: "attrs"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
} LetDirective {...}
- start: 1981
- end: 1993
- type: "LetDirective"
- name: "rowAttrs"
- expression: null
- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1994
- end: 1999
- raw: "\n\t\t\t\t"
- data: "\n\t\t\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1999
- end: 2223
- name: "tr"
attributes: [...] (1)
SpreadAttribute {...}
- type: "SpreadAttribute"
- start: 2003
- end: 2016
expression: Identifier {...}
- type: "Identifier"
- start: 2007
- end: 2015
loc: {...}
start: {...}
- line: 80
- column: 12
}end: {...}
- line: 80
- column: 20
}
}- name: "rowAttrs"
}
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 2017
- end: 2023
- raw: "\n\t\t\t\t\t"
- data: "\n\t\t\t\t\t"
} EachBlock {...}
- type: "EachBlock"
- start: 2023
- end: 2213
expression: MemberExpression {...}
- type: "MemberExpression"
- start: 2030
- end: 2039
loc: {...}
start: {...}
- line: 81
- column: 12
}end: {...}
- line: 81
- column: 21
}
}object: Identifier {...}
- type: "Identifier"
- start: 2030
- end: 2033
loc: {...}
start: {...}
- line: 81
- column: 12
}end: {...}
- line: 81
- column: 15
}
}- name: "row"
}property: Identifier {...}
- type: "Identifier"
- start: 2034
- end: 2039
loc: {...}
start: {...}
- line: 81
- column: 16
}end: {...}
- line: 81
- column: 21
}
}- name: "cells"
}- computed: false
- optional: false
}body: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 2058
- end: 2065
- raw: "\n\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t"
} Component {...}
- type: "Component"
- start: 2065
- end: 2200
- name: "Subscribe"
attributes: [...] (2)
Attribute {...}
- type: "Attribute"
- start: 2076
- end: 2096
- name: "attrs"
value: ExpressionTag {...}
- type: "ExpressionTag"
- start: 2082
- end: 2096
expression: CallExpression {...}
- type: "CallExpression"
- start: 2083
- end: 2095
loc: {...}
start: {...}
- line: 82
- column: 24
}end: {...}
- line: 82
- column: 36
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2083
- end: 2093
loc: {...}
start: {...}
- line: 82
- column: 24
}end: {...}
- line: 82
- column: 34
}
}object: Identifier {...}
- type: "Identifier"
- start: 2083
- end: 2087
loc: {...}
start: {...}
- line: 82
- column: 24
}end: {...}
- line: 82
- column: 28
}
}- name: "cell"
}property: Identifier {...}
- type: "Identifier"
- start: 2088
- end: 2093
loc: {...}
start: {...}
- line: 82
- column: 29
}end: {...}
- line: 82
- column: 34
}
}- name: "attrs"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
} LetDirective {...}
- start: 2097
- end: 2106
- type: "LetDirective"
- name: "attrs"
- expression: null
- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 2107
- end: 2115
- raw: "\n\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 2115
- end: 2181
- name: "td"
attributes: [...] (1)
SpreadAttribute {...}
- type: "SpreadAttribute"
- start: 2119
- end: 2129
expression: Identifier {...}
- type: "Identifier"
- start: 2123
- end: 2128
loc: {...}
start: {...}
- line: 83
- column: 15
}end: {...}
- line: 83
- column: 20
}
}- name: "attrs"
}
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 2130
- end: 2139
- raw: "\n\t\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t\t"
} Component {...}
- type: "Component"
- start: 2139
- end: 2168
- name: "Render"
attributes: [...] (1)
Attribute {...}
- type: "Attribute"
- start: 2147
- end: 2165
- name: "of"
value: ExpressionTag {...}
- type: "ExpressionTag"
- start: 2150
- end: 2165
expression: CallExpression {...}
- type: "CallExpression"
- start: 2151
- end: 2164
loc: {...}
start: {...}
- line: 84
- column: 20
}end: {...}
- line: 84
- column: 33
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 2151
- end: 2162
loc: {...}
start: {...}
- line: 84
- column: 20
}end: {...}
- line: 84
- column: 31
}
}object: Identifier {...}
- type: "Identifier"
- start: 2151
- end: 2155
loc: {...}
start: {...}
- line: 84
- column: 20
}end: {...}
- line: 84
- column: 24
}
}- name: "cell"
}property: Identifier {...}
- type: "Identifier"
- start: 2156
- end: 2162
loc: {...}
start: {...}
- line: 84
- column: 25
}end: {...}
- line: 84
- column: 31
}
}- name: "render"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}
}
}
]fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 2168
- end: 2176
- raw: "\n\t\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 2181
- end: 2188
- raw: "\n\t\t\t\t\t\t"
- data: "\n\t\t\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 2200
- end: 2206
- raw: "\n\t\t\t\t\t"
- data: "\n\t\t\t\t\t"
}
]
}context: Identifier {...}
- type: "Identifier"
- name: "cell"
- start: 2043
loc: {...}
start: {...}
- line: 81
- column: 25
- character: 2043
}end: {...}
- line: 81
- column: 29
- character: 2047
}
}- end: 2047
- typeAnnotation: undefined
}- index: undefined
key: MemberExpression {...}
- type: "MemberExpression"
- start: 2049
- end: 2056
loc: {...}
start: {...}
- line: 81
- column: 31
}end: {...}
- line: 81
- column: 38
}
}object: Identifier {...}
- type: "Identifier"
- start: 2049
- end: 2053
loc: {...}
start: {...}
- line: 81
- column: 31
}end: {...}
- line: 81
- column: 35
}
}- name: "cell"
}property: Identifier {...}
- type: "Identifier"
- start: 2054
- end: 2056
loc: {...}
start: {...}
- line: 81
- column: 36
}end: {...}
- line: 81
- column: 38
}
}- name: "id"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 2213
- end: 2218
- raw: "\n\t\t\t\t"
- data: "\n\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 2223
- end: 2227
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 2239
- end: 2242
- raw: "\n\t\t"
- data: "\n\t\t"
}
]
}context: Identifier {...}
- type: "Identifier"
- name: "row"
- start: 1930
loc: {...}
start: {...}
- line: 78
- column: 18
- character: 1930
}end: {...}
- line: 78
- column: 21
- character: 1933
}
}- end: 1933
- typeAnnotation: undefined
}- index: undefined
key: MemberExpression {...}
- type: "MemberExpression"
- start: 1935
- end: 1941
loc: {...}
start: {...}
- line: 78
- column: 23
}end: {...}
- line: 78
- column: 29
}
}object: Identifier {...}
- type: "Identifier"
- start: 1935
- end: 1938
loc: {...}
start: {...}
- line: 78
- column: 23
}end: {...}
- line: 78
- column: 26
}
}- name: "row"
}property: Identifier {...}
- type: "Identifier"
- start: 1939
- end: 1941
loc: {...}
start: {...}
- line: 78
- column: 27
}end: {...}
- line: 78
- column: 29
}
}- name: "id"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 2249
- end: 2251
- raw: "\n\t"
- data: "\n\t"
}
]
}
} Text {...}
- type: "Text"
- start: 2259
- end: 2260
- raw: "\n"
- data: "\n"
}
]
}
} Text {...}
- type: "Text"
- start: 2268
- end: 2270
- raw: "\n\n"
- data: "\n\n"
}
]
}- options: null
instance: Script {...}
- type: "Script"
- start: 0
- end: 1236
- context: "default"
content: Program {...}
- type: "Program"
- start: 8
- end: 1227
loc: {...}
start: {...}
- line: 1
- column: 0
}end: {...}
- line: 52
- column: 0
}
}body: [...] (8)
ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 11
- end: 51
loc: {...}
start: {...}
- line: 2
- column: 2
}end: {...}
- line: 2
- column: 42
}
}specifiers: [...] (1)
ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 20
- end: 28
loc: {...}
start: {...}
- line: 2
- column: 11
}end: {...}
- line: 2
- column: 19
}
}imported: Identifier {...}
- type: "Identifier"
- start: 20
- end: 28
loc: {...}
start: {...}
- line: 2
- column: 11
}end: {...}
- line: 2
- column: 19
}
}- name: "readable"
}local: Identifier {...}
- type: "Identifier"
- start: 20
- end: 28
loc: {...}
start: {...}
- line: 2
- column: 11
}end: {...}
- line: 2
- column: 19
}
}- name: "readable"
}
}
]source: Literal {...}
- type: "Literal"
- start: 36
- end: 50
loc: {...}
start: {...}
- line: 2
- column: 27
}end: {...}
- line: 2
- column: 41
}
}- value: "svelte/store"
- raw: "'svelte/store'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 54
- end: 132
loc: {...}
start: {...}
- line: 3
- column: 2
}end: {...}
- line: 3
- column: 80
}
}specifiers: [...] (3)
ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 63
- end: 74
loc: {...}
start: {...}
- line: 3
- column: 11
}end: {...}
- line: 3
- column: 22
}
}imported: Identifier {...}
- type: "Identifier"
- start: 63
- end: 74
loc: {...}
start: {...}
- line: 3
- column: 11
}end: {...}
- line: 3
- column: 22
}
}- name: "createTable"
}local: Identifier {...}
- type: "Identifier"
- start: 63
- end: 74
loc: {...}
start: {...}
- line: 3
- column: 11
}end: {...}
- line: 3
- column: 22
}
}- name: "createTable"
}
} ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 76
- end: 85
loc: {...}
start: {...}
- line: 3
- column: 24
}end: {...}
- line: 3
- column: 33
}
}imported: Identifier {...}
- type: "Identifier"
- start: 76
- end: 85
loc: {...}
start: {...}
- line: 3
- column: 24
}end: {...}
- line: 3
- column: 33
}
}- name: "Subscribe"
}local: Identifier {...}
- type: "Identifier"
- start: 76
- end: 85
loc: {...}
start: {...}
- line: 3
- column: 24
}end: {...}
- line: 3
- column: 33
}
}- name: "Subscribe"
}
} ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 87
- end: 93
loc: {...}
start: {...}
- line: 3
- column: 35
}end: {...}
- line: 3
- column: 41
}
}imported: Identifier {...}
- type: "Identifier"
- start: 87
- end: 93
loc: {...}
start: {...}
- line: 3
- column: 35
}end: {...}
- line: 3
- column: 41
}
}- name: "Render"
}local: Identifier {...}
- type: "Identifier"
- start: 87
- end: 93
loc: {...}
start: {...}
- line: 3
- column: 35
}end: {...}
- line: 3
- column: 41
}
}- name: "Render"
}
}
]source: Literal {...}
- type: "Literal"
- start: 101
- end: 131
loc: {...}
start: {...}
- line: 3
- column: 49
}end: {...}
- line: 3
- column: 79
}
}- value: "svelte-headless-table@0.17.1"
- raw: "'svelte-headless-table@0.17.1'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 135
- end: 200
loc: {...}
start: {...}
- line: 4
- column: 2
}end: {...}
- line: 4
- column: 67
}
}specifiers: [...] (1)
ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 144
- end: 153
loc: {...}
start: {...}
- line: 4
- column: 11
}end: {...}
- line: 4
- column: 20
}
}imported: Identifier {...}
- type: "Identifier"
- start: 144
- end: 153
loc: {...}
start: {...}
- line: 4
- column: 11
}end: {...}
- line: 4
- column: 20
}
}- name: "addSortBy"
}local: Identifier {...}
- type: "Identifier"
- start: 144
- end: 153
loc: {...}
start: {...}
- line: 4
- column: 11
}end: {...}
- line: 4
- column: 20
}
}- name: "addSortBy"
}
}
]source: Literal {...}
- type: "Literal"
- start: 161
- end: 199
loc: {...}
start: {...}
- line: 4
- column: 28
}end: {...}
- line: 4
- column: 66
}
}- value: "svelte-headless-table@0.17.1/plugins"
- raw: "'svelte-headless-table@0.17.1/plugins'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 203
- end: 251
loc: {...}
start: {...}
- line: 5
- column: 2
}end: {...}
- line: 5
- column: 50
}
}specifiers: [...] (1)
ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 212
- end: 225
loc: {...}
start: {...}
- line: 5
- column: 11
}end: {...}
- line: 5
- column: 24
}
}imported: Identifier {...}
- type: "Identifier"
- start: 212
- end: 225
loc: {...}
start: {...}
- line: 5
- column: 11
}end: {...}
- line: 5
- column: 24
}
}- name: "createSamples"
}local: Identifier {...}
- type: "Identifier"
- start: 212
- end: 225
loc: {...}
start: {...}
- line: 5
- column: 11
}end: {...}
- line: 5
- column: 24
}
}- name: "createSamples"
}
}
]source: Literal {...}
- type: "Literal"
- start: 233
- end: 250
loc: {...}
start: {...}
- line: 5
- column: 32
}end: {...}
- line: 5
- column: 49
}
}- value: "./createSamples"
- raw: "'./createSamples'"
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 255
- end: 296
loc: {...}
start: {...}
- line: 7
- column: 2
}end: {...}
- line: 7
- column: 43
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 261
- end: 295
loc: {...}
start: {...}
- line: 7
- column: 8
}end: {...}
- line: 7
- column: 42
}
}id: Identifier {...}
- type: "Identifier"
- start: 261
- end: 265
loc: {...}
start: {...}
- line: 7
- column: 8
}end: {...}
- line: 7
- column: 12
}
}- name: "data"
}init: CallExpression {...}
- type: "CallExpression"
- start: 268
- end: 295
loc: {...}
start: {...}
- line: 7
- column: 15
}end: {...}
- line: 7
- column: 42
}
}callee: Identifier {...}
- type: "Identifier"
- start: 268
- end: 276
loc: {...}
start: {...}
- line: 7
- column: 15
}end: {...}
- line: 7
- column: 23
}
}- name: "readable"
}arguments: [...] (1)
CallExpression {...}
- type: "CallExpression"
- start: 277
- end: 294
loc: {...}
start: {...}
- line: 7
- column: 24
}end: {...}
- line: 7
- column: 41
}
}callee: Identifier {...}
- type: "Identifier"
- start: 277
- end: 290
loc: {...}
start: {...}
- line: 7
- column: 24
}end: {...}
- line: 7
- column: 37
}
}- name: "createSamples"
}arguments: [...] (1)
Literal {...}
- type: "Literal"
- start: 291
- end: 293
loc: {...}
start: {...}
- line: 7
- column: 38
}end: {...}
- line: 7
- column: 40
}
}- value: 30
- raw: "30"
}
]- optional: false
}
]- optional: false
}
}
]- kind: "const"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 300
- end: 362
loc: {...}
start: {...}
- line: 9
- column: 2
}end: {...}
- line: 11
- column: 5
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 306
- end: 361
loc: {...}
start: {...}
- line: 9
- column: 8
}end: {...}
- line: 11
- column: 4
}
}id: Identifier {...}
- type: "Identifier"
- start: 306
- end: 311
loc: {...}
start: {...}
- line: 9
- column: 8
}end: {...}
- line: 9
- column: 13
}
}- name: "table"
}init: CallExpression {...}
- type: "CallExpression"
- start: 314
- end: 361
loc: {...}
start: {...}
- line: 9
- column: 16
}end: {...}
- line: 11
- column: 4
}
}callee: Identifier {...}
- type: "Identifier"
- start: 314
- end: 325
loc: {...}
start: {...}
- line: 9
- column: 16
}end: {...}
- line: 9
- column: 27
}
}- name: "createTable"
}arguments: [...] (2)
Identifier {...}
- type: "Identifier"
- start: 326
- end: 330
loc: {...}
start: {...}
- line: 9
- column: 28
}end: {...}
- line: 9
- column: 32
}
}- name: "data"
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 332
- end: 360
loc: {...}
start: {...}
- line: 9
- column: 34
}end: {...}
- line: 11
- column: 3
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 338
- end: 355
loc: {...}
start: {...}
- line: 10
- column: 4
}end: {...}
- line: 10
- column: 21
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 338
- end: 342
loc: {...}
start: {...}
- line: 10
- column: 4
}end: {...}
- line: 10
- column: 8
}
}- name: "sort"
}value: CallExpression {...}
- type: "CallExpression"
- start: 344
- end: 355
loc: {...}
start: {...}
- line: 10
- column: 10
}end: {...}
- line: 10
- column: 21
}
}callee: Identifier {...}
- type: "Identifier"
- start: 344
- end: 353
loc: {...}
start: {...}
- line: 10
- column: 10
}end: {...}
- line: 10
- column: 19
}
}- name: "addSortBy"
}- arguments: []
- optional: false
}- kind: "init"
}
]
}
]- optional: false
}
}
]- kind: "const"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 366
- end: 1133
loc: {...}
start: {...}
- line: 13
- column: 2
}end: {...}
- line: 48
- column: 5
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 372
- end: 1132
loc: {...}
start: {...}
- line: 13
- column: 8
}end: {...}
- line: 48
- column: 4
}
}id: Identifier {...}
- type: "Identifier"
- start: 372
- end: 379
loc: {...}
start: {...}
- line: 13
- column: 8
}end: {...}
- line: 13
- column: 15
}
}- name: "columns"
}init: CallExpression {...}
- type: "CallExpression"
- start: 382
- end: 1132
loc: {...}
start: {...}
- line: 13
- column: 18
}end: {...}
- line: 48
- column: 4
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 382
- end: 401
loc: {...}
start: {...}
- line: 13
- column: 18
}end: {...}
- line: 13
- column: 37
}
}object: Identifier {...}
- type: "Identifier"
- start: 382
- end: 387
loc: {...}
start: {...}
- line: 13
- column: 18
}end: {...}
- line: 13
- column: 23
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 388
- end: 401
loc: {...}
start: {...}
- line: 13
- column: 24
}end: {...}
- line: 13
- column: 37
}
}- name: "createColumns"
}- computed: false
- optional: false
}arguments: [...] (1)
ArrayExpression {...}
- type: "ArrayExpression"
- start: 402
- end: 1131
loc: {...}
start: {...}
- line: 13
- column: 38
}end: {...}
- line: 48
- column: 3
}
}elements: [...] (2)
CallExpression {...}
- type: "CallExpression"
- start: 408
- end: 674
loc: {...}
start: {...}
- line: 14
- column: 4
}end: {...}
- line: 26
- column: 6
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 408
- end: 419
loc: {...}
start: {...}
- line: 14
- column: 4
}end: {...}
- line: 14
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 408
- end: 413
loc: {...}
start: {...}
- line: 14
- column: 4
}end: {...}
- line: 14
- column: 9
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 414
- end: 419
loc: {...}
start: {...}
- line: 14
- column: 10
}end: {...}
- line: 14
- column: 15
}
}- name: "group"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 420
- end: 673
loc: {...}
start: {...}
- line: 14
- column: 16
}end: {...}
- line: 26
- column: 5
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 428
- end: 442
loc: {...}
start: {...}
- line: 15
- column: 6
}end: {...}
- line: 15
- column: 20
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 428
- end: 434
loc: {...}
start: {...}
- line: 15
- column: 6
}end: {...}
- line: 15
- column: 12
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 436
- end: 442
loc: {...}
start: {...}
- line: 15
- column: 14
}end: {...}
- line: 15
- column: 20
}
}- value: "Name"
- raw: "'Name'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 450
- end: 666
loc: {...}
start: {...}
- line: 16
- column: 6
}end: {...}
- line: 25
- column: 7
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 450
- end: 457
loc: {...}
start: {...}
- line: 16
- column: 6
}end: {...}
- line: 16
- column: 13
}
}- name: "columns"
}value: ArrayExpression {...}
- type: "ArrayExpression"
- start: 459
- end: 666
loc: {...}
start: {...}
- line: 16
- column: 15
}end: {...}
- line: 25
- column: 7
}
}elements: [...] (2)
CallExpression {...}
- type: "CallExpression"
- start: 469
- end: 559
loc: {...}
start: {...}
- line: 17
- column: 8
}end: {...}
- line: 20
- column: 10
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 469
- end: 481
loc: {...}
start: {...}
- line: 17
- column: 8
}end: {...}
- line: 17
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 469
- end: 474
loc: {...}
start: {...}
- line: 17
- column: 8
}end: {...}
- line: 17
- column: 13
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 475
- end: 481
loc: {...}
start: {...}
- line: 17
- column: 14
}end: {...}
- line: 17
- column: 20
}
}- name: "column"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 482
- end: 558
loc: {...}
start: {...}
- line: 17
- column: 21
}end: {...}
- line: 20
- column: 9
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 494
- end: 514
loc: {...}
start: {...}
- line: 18
- column: 10
}end: {...}
- line: 18
- column: 30
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 494
- end: 500
loc: {...}
start: {...}
- line: 18
- column: 10
}end: {...}
- line: 18
- column: 16
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 502
- end: 514
loc: {...}
start: {...}
- line: 18
- column: 18
}end: {...}
- line: 18
- column: 30
}
}- value: "First Name"
- raw: "'First Name'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 526
- end: 547
loc: {...}
start: {...}
- line: 19
- column: 10
}end: {...}
- line: 19
- column: 31
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 526
- end: 534
loc: {...}
start: {...}
- line: 19
- column: 10
}end: {...}
- line: 19
- column: 18
}
}- name: "accessor"
}value: Literal {...}
- type: "Literal"
- start: 536
- end: 547
loc: {...}
start: {...}
- line: 19
- column: 20
}end: {...}
- line: 19
- column: 31
}
}- value: "firstName"
- raw: "'firstName'"
}- kind: "init"
}
]
}
]- optional: false
} CallExpression {...}
- type: "CallExpression"
- start: 569
- end: 657
loc: {...}
start: {...}
- line: 21
- column: 8
}end: {...}
- line: 24
- column: 10
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 569
- end: 581
loc: {...}
start: {...}
- line: 21
- column: 8
}end: {...}
- line: 21
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 569
- end: 574
loc: {...}
start: {...}
- line: 21
- column: 8
}end: {...}
- line: 21
- column: 13
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 575
- end: 581
loc: {...}
start: {...}
- line: 21
- column: 14
}end: {...}
- line: 21
- column: 20
}
}- name: "column"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 582
- end: 656
loc: {...}
start: {...}
- line: 21
- column: 21
}end: {...}
- line: 24
- column: 9
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 594
- end: 613
loc: {...}
start: {...}
- line: 22
- column: 10
}end: {...}
- line: 22
- column: 29
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 594
- end: 600
loc: {...}
start: {...}
- line: 22
- column: 10
}end: {...}
- line: 22
- column: 16
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 602
- end: 613
loc: {...}
start: {...}
- line: 22
- column: 18
}end: {...}
- line: 22
- column: 29
}
}- value: "Last Name"
- raw: "'Last Name'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 625
- end: 645
loc: {...}
start: {...}
- line: 23
- column: 10
}end: {...}
- line: 23
- column: 30
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 625
- end: 633
loc: {...}
start: {...}
- line: 23
- column: 10
}end: {...}
- line: 23
- column: 18
}
}- name: "accessor"
}value: Literal {...}
- type: "Literal"
- start: 635
- end: 645
loc: {...}
start: {...}
- line: 23
- column: 20
}end: {...}
- line: 23
- column: 30
}
}- value: "lastName"
- raw: "'lastName'"
}- kind: "init"
}
]
}
]- optional: false
}
]
}- kind: "init"
}
]
}
]- optional: false
} CallExpression {...}
- type: "CallExpression"
- start: 680
- end: 1126
loc: {...}
start: {...}
- line: 27
- column: 4
}end: {...}
- line: 47
- column: 6
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 680
- end: 691
loc: {...}
start: {...}
- line: 27
- column: 4
}end: {...}
- line: 27
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 680
- end: 685
loc: {...}
start: {...}
- line: 27
- column: 4
}end: {...}
- line: 27
- column: 9
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 686
- end: 691
loc: {...}
start: {...}
- line: 27
- column: 10
}end: {...}
- line: 27
- column: 15
}
}- name: "group"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 692
- end: 1125
loc: {...}
start: {...}
- line: 27
- column: 16
}end: {...}
- line: 47
- column: 5
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 700
- end: 714
loc: {...}
start: {...}
- line: 28
- column: 6
}end: {...}
- line: 28
- column: 20
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 700
- end: 706
loc: {...}
start: {...}
- line: 28
- column: 6
}end: {...}
- line: 28
- column: 12
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 708
- end: 714
loc: {...}
start: {...}
- line: 28
- column: 14
}end: {...}
- line: 28
- column: 20
}
}- value: "Info"
- raw: "'Info'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 722
- end: 1118
loc: {...}
start: {...}
- line: 29
- column: 6
}end: {...}
- line: 46
- column: 7
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 722
- end: 729
loc: {...}
start: {...}
- line: 29
- column: 6
}end: {...}
- line: 29
- column: 13
}
}- name: "columns"
}value: ArrayExpression {...}
- type: "ArrayExpression"
- start: 731
- end: 1118
loc: {...}
start: {...}
- line: 29
- column: 15
}end: {...}
- line: 46
- column: 7
}
}elements: [...] (4)
CallExpression {...}
- type: "CallExpression"
- start: 741
- end: 818
loc: {...}
start: {...}
- line: 30
- column: 8
}end: {...}
- line: 33
- column: 10
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 741
- end: 753
loc: {...}
start: {...}
- line: 30
- column: 8
}end: {...}
- line: 30
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 741
- end: 746
loc: {...}
start: {...}
- line: 30
- column: 8
}end: {...}
- line: 30
- column: 13
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 747
- end: 753
loc: {...}
start: {...}
- line: 30
- column: 14
}end: {...}
- line: 30
- column: 20
}
}- name: "column"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 754
- end: 817
loc: {...}
start: {...}
- line: 30
- column: 21
}end: {...}
- line: 33
- column: 9
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 766
- end: 779
loc: {...}
start: {...}
- line: 31
- column: 10
}end: {...}
- line: 31
- column: 23
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 766
- end: 772
loc: {...}
start: {...}
- line: 31
- column: 10
}end: {...}
- line: 31
- column: 16
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 774
- end: 779
loc: {...}
start: {...}
- line: 31
- column: 18
}end: {...}
- line: 31
- column: 23
}
}- value: "Age"
- raw: "'Age'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 791
- end: 806
loc: {...}
start: {...}
- line: 32
- column: 10
}end: {...}
- line: 32
- column: 25
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 791
- end: 799
loc: {...}
start: {...}
- line: 32
- column: 10
}end: {...}
- line: 32
- column: 18
}
}- name: "accessor"
}value: Literal {...}
- type: "Literal"
- start: 801
- end: 806
loc: {...}
start: {...}
- line: 32
- column: 20
}end: {...}
- line: 32
- column: 25
}
}- value: "age"
- raw: "'age'"
}- kind: "init"
}
]
}
]- optional: false
} CallExpression {...}
- type: "CallExpression"
- start: 828
- end: 911
loc: {...}
start: {...}
- line: 34
- column: 8
}end: {...}
- line: 37
- column: 10
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 828
- end: 840
loc: {...}
start: {...}
- line: 34
- column: 8
}end: {...}
- line: 34
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 828
- end: 833
loc: {...}
start: {...}
- line: 34
- column: 8
}end: {...}
- line: 34
- column: 13
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 834
- end: 840
loc: {...}
start: {...}
- line: 34
- column: 14
}end: {...}
- line: 34
- column: 20
}
}- name: "column"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 841
- end: 910
loc: {...}
start: {...}
- line: 34
- column: 21
}end: {...}
- line: 37
- column: 9
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 853
- end: 869
loc: {...}
start: {...}
- line: 35
- column: 10
}end: {...}
- line: 35
- column: 26
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 853
- end: 859
loc: {...}
start: {...}
- line: 35
- column: 10
}end: {...}
- line: 35
- column: 16
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 861
- end: 869
loc: {...}
start: {...}
- line: 35
- column: 18
}end: {...}
- line: 35
- column: 26
}
}- value: "Status"
- raw: "'Status'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 881
- end: 899
loc: {...}
start: {...}
- line: 36
- column: 10
}end: {...}
- line: 36
- column: 28
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 881
- end: 889
loc: {...}
start: {...}
- line: 36
- column: 10
}end: {...}
- line: 36
- column: 18
}
}- name: "accessor"
}value: Literal {...}
- type: "Literal"
- start: 891
- end: 899
loc: {...}
start: {...}
- line: 36
- column: 20
}end: {...}
- line: 36
- column: 28
}
}- value: "status"
- raw: "'status'"
}- kind: "init"
}
]
}
]- optional: false
} CallExpression {...}
- type: "CallExpression"
- start: 921
- end: 1004
loc: {...}
start: {...}
- line: 38
- column: 8
}end: {...}
- line: 41
- column: 10
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 921
- end: 933
loc: {...}
start: {...}
- line: 38
- column: 8
}end: {...}
- line: 38
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 921
- end: 926
loc: {...}
start: {...}
- line: 38
- column: 8
}end: {...}
- line: 38
- column: 13
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 927
- end: 933
loc: {...}
start: {...}
- line: 38
- column: 14
}end: {...}
- line: 38
- column: 20
}
}- name: "column"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 934
- end: 1003
loc: {...}
start: {...}
- line: 38
- column: 21
}end: {...}
- line: 41
- column: 9
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 946
- end: 962
loc: {...}
start: {...}
- line: 39
- column: 10
}end: {...}
- line: 39
- column: 26
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 946
- end: 952
loc: {...}
start: {...}
- line: 39
- column: 10
}end: {...}
- line: 39
- column: 16
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 954
- end: 962
loc: {...}
start: {...}
- line: 39
- column: 18
}end: {...}
- line: 39
- column: 26
}
}- value: "Visits"
- raw: "'Visits'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 974
- end: 992
loc: {...}
start: {...}
- line: 40
- column: 10
}end: {...}
- line: 40
- column: 28
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 974
- end: 982
loc: {...}
start: {...}
- line: 40
- column: 10
}end: {...}
- line: 40
- column: 18
}
}- name: "accessor"
}value: Literal {...}
- type: "Literal"
- start: 984
- end: 992
loc: {...}
start: {...}
- line: 40
- column: 20
}end: {...}
- line: 40
- column: 28
}
}- value: "visits"
- raw: "'visits'"
}- kind: "init"
}
]
}
]- optional: false
} CallExpression {...}
- type: "CallExpression"
- start: 1014
- end: 1109
loc: {...}
start: {...}
- line: 42
- column: 8
}end: {...}
- line: 45
- column: 10
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1014
- end: 1026
loc: {...}
start: {...}
- line: 42
- column: 8
}end: {...}
- line: 42
- column: 20
}
}object: Identifier {...}
- type: "Identifier"
- start: 1014
- end: 1019
loc: {...}
start: {...}
- line: 42
- column: 8
}end: {...}
- line: 42
- column: 13
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 1020
- end: 1026
loc: {...}
start: {...}
- line: 42
- column: 14
}end: {...}
- line: 42
- column: 20
}
}- name: "column"
}- computed: false
- optional: false
}arguments: [...] (1)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 1027
- end: 1108
loc: {...}
start: {...}
- line: 42
- column: 21
}end: {...}
- line: 45
- column: 9
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 1039
- end: 1065
loc: {...}
start: {...}
- line: 43
- column: 10
}end: {...}
- line: 43
- column: 36
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1039
- end: 1045
loc: {...}
start: {...}
- line: 43
- column: 10
}end: {...}
- line: 43
- column: 16
}
}- name: "header"
}value: Literal {...}
- type: "Literal"
- start: 1047
- end: 1065
loc: {...}
start: {...}
- line: 43
- column: 18
}end: {...}
- line: 43
- column: 36
}
}- value: "Profile Progress"
- raw: "'Profile Progress'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 1077
- end: 1097
loc: {...}
start: {...}
- line: 44
- column: 10
}end: {...}
- line: 44
- column: 30
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1077
- end: 1085
loc: {...}
start: {...}
- line: 44
- column: 10
}end: {...}
- line: 44
- column: 18
}
}- name: "accessor"
}value: Literal {...}
- type: "Literal"
- start: 1087
- end: 1097
loc: {...}
start: {...}
- line: 44
- column: 20
}end: {...}
- line: 44
- column: 30
}
}- value: "progress"
- raw: "'progress'"
}- kind: "init"
}
]
}
]- optional: false
}
]
}- kind: "init"
}
]
}
]- optional: false
}
]
}
]- optional: false
}
}
]- kind: "const"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1137
- end: 1225
loc: {...}
start: {...}
- line: 50
- column: 2
}end: {...}
- line: 50
- column: 90
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1143
- end: 1224
loc: {...}
start: {...}
- line: 50
- column: 8
}end: {...}
- line: 50
- column: 89
}
}id: ObjectPattern {...}
- type: "ObjectPattern"
- start: 1143
- end: 1191
loc: {...}
start: {...}
- line: 50
- column: 8
}end: {...}
- line: 50
- column: 56
}
}properties: [...] (4)
Property {...}
- type: "Property"
- start: 1145
- end: 1155
loc: {...}
start: {...}
- line: 50
- column: 10
}end: {...}
- line: 50
- column: 20
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1145
- end: 1155
loc: {...}
start: {...}
- line: 50
- column: 10
}end: {...}
- line: 50
- column: 20
}
}- name: "headerRows"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 1145
- end: 1155
loc: {...}
start: {...}
- line: 50
- column: 10
}end: {...}
- line: 50
- column: 20
}
}- name: "headerRows"
}
} Property {...}
- type: "Property"
- start: 1157
- end: 1161
loc: {...}
start: {...}
- line: 50
- column: 22
}end: {...}
- line: 50
- column: 26
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1157
- end: 1161
loc: {...}
start: {...}
- line: 50
- column: 22
}end: {...}
- line: 50
- column: 26
}
}- name: "rows"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 1157
- end: 1161
loc: {...}
start: {...}
- line: 50
- column: 22
}end: {...}
- line: 50
- column: 26
}
}- name: "rows"
}
} Property {...}
- type: "Property"
- start: 1163
- end: 1173
loc: {...}
start: {...}
- line: 50
- column: 28
}end: {...}
- line: 50
- column: 38
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1163
- end: 1173
loc: {...}
start: {...}
- line: 50
- column: 28
}end: {...}
- line: 50
- column: 38
}
}- name: "tableAttrs"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 1163
- end: 1173
loc: {...}
start: {...}
- line: 50
- column: 28
}end: {...}
- line: 50
- column: 38
}
}- name: "tableAttrs"
}
} Property {...}
- type: "Property"
- start: 1175
- end: 1189
loc: {...}
start: {...}
- line: 50
- column: 40
}end: {...}
- line: 50
- column: 54
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1175
- end: 1189
loc: {...}
start: {...}
- line: 50
- column: 40
}end: {...}
- line: 50
- column: 54
}
}- name: "tableBodyAttrs"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 1175
- end: 1189
loc: {...}
start: {...}
- line: 50
- column: 40
}end: {...}
- line: 50
- column: 54
}
}- name: "tableBodyAttrs"
}
}
]
}init: CallExpression {...}
- type: "CallExpression"
- start: 1194
- end: 1224
loc: {...}
start: {...}
- line: 50
- column: 59
}end: {...}
- line: 50
- column: 89
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1194
- end: 1215
loc: {...}
start: {...}
- line: 50
- column: 59
}end: {...}
- line: 50
- column: 80
}
}object: Identifier {...}
- type: "Identifier"
- start: 1194
- end: 1199
loc: {...}
start: {...}
- line: 50
- column: 59
}end: {...}
- line: 50
- column: 64
}
}- name: "table"
}property: Identifier {...}
- type: "Identifier"
- start: 1200
- end: 1215
loc: {...}
start: {...}
- line: 50
- column: 65
}end: {...}
- line: 50
- column: 80
}
}- name: "createViewModel"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1216
- end: 1223
loc: {...}
start: {...}
- line: 50
- column: 81
}end: {...}
- line: 50
- column: 88
}
}- name: "columns"
}
]- optional: false
}
}
]- kind: "const"
}
]- sourceType: "module"
}- attributes: []
}
}
The AST is not public API and may change at any point in time