Create new
Bindings
Transitions
Animations
Easing
Component composition
Context API
Special elements
Module context
Debugging
Miscellaneous
App.svelte
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 />
99
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
›
⌄
⌄
⌄
⌄
⌄
⌄
⌄
<script>
import { flip } from 'svelte/animate';
import { fade } from 'svelte/transition';
let allPeople = [ 'Jerry', 'Elaine', 'George', 'Kramer', 'Rick', 'Jerry', 'Beth', 'Morty', 'Summer', 'Abed', 'Troy', 'Jeff', 'Britta', 'Annie', 'Shirley', 'Pierce'].map((name) => ({ name }));
let oneValues = {
id: 'seinfeld',
people: [ { name: 'Jerry' }, { name: 'Elaine' }, { name: 'George' }, { name: 'Kramer' } ]
};
let twoValues = {
id: 'rick-and-morty',
people: [ { name: 'Rick' }, { name: 'Jerry' }, { name: 'Beth' }, { name: 'Morty' }, { name: 'Summer' } ]
};
let toggle = false;
$: values = toggle ? oneValues : twoValues;
$: currentPeople = new Set(values.people.map((p) => p.name));
function addOne() {
let newItem = allPeople.find((p) => !currentPeople.has(p.name))
if(!newItem) { return; }
let index = Math.floor(Math.random() * values.people.length);
values.people = [
...values.people.slice(0, index),
newItem,
...values.people.slice(index),
];
}
function removeOne() {
let index = Math.floor(Math.random() * values.people.length);
values.people = [
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
›
⌄
⌄
import 'svelte/internal/disclose-version';
import 'svelte/internal/flags/legacy';
import * as $ from 'svelte/internal/client';
import { flip } from 'svelte/animate';
import { fade } from 'svelte/transition';
var root_2 = $.template(`<div> </div>`);
var root_1 = $.template(`<div></div>`);
var root_3 = $.template(`<div> </div>`);
var root = $.template(`<p>Click <span style="font-weight:500">Switch Lists</span> to see the undesired transition behavior in the non-wrapped case.</p> <button>Switch Lists</button> <button>Add a Name</button> <button>Remove a Name</button> <div class="container svelte-1g6fmy1"><div><div class="header svelte-1g6fmy1">Wrapped in<br>single-element #each</div> <!></div> <div style="margin-left:2rem"><div class="header svelte-1g6fmy1">Not wrapped in<br>single-element #each</div> <!></div></div>`, 1);
export default function App($$anchor, $$props) {
$.push($$props, false);
const values = $.mutable_state();
const currentPeople = $.mutable_state();
let allPeople = [
'Jerry',
'Elaine',
'George',
'Kramer',
'Rick',
'Jerry',
'Beth',
'Morty',
'Summer',
'Abed',
'Troy',
'Jeff',
'Britta',
'Annie',
'Shirley',
'Pierce'
].map((name) => ({ name }));
result = svelte.compile(source, {
generate: ,
});99
1
2
3
4
5
6
7
8
9
10
11
›
.container.svelte-1g6fmy1 {
display: flex;
}
.header.svelte-1g6fmy1 {
margin-bottom: 0.5rem;
font-weight: 500;
color: #444;
}
Root {
css: StyleSheet {...}
- type: "StyleSheet"
- start: 1205
- end: 1331
- attributes: []
children: [...] (2)
Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 1214
- end: 1224
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 1214
- end: 1224
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "container"
- start: 1214
- end: 1224
}
]- start: 1214
- end: 1224
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 1225
- end: 1246
children: [...] (1)
Declaration {...}
- type: "Declaration"
- start: 1229
- end: 1242
- property: "display"
- value: "flex"
}
]
}- start: 1214
- end: 1246
} Rule {...}
- type: "Rule"
prelude: SelectorList {...}
- type: "SelectorList"
- start: 1250
- end: 1257
children: [...] (1)
ComplexSelector {...}
- type: "ComplexSelector"
- start: 1250
- end: 1257
children: [...] (1)
RelativeSelector {...}
- type: "RelativeSelector"
- combinator: null
selectors: [...] (1)
ClassSelector {...}
- type: "ClassSelector"
- name: "header"
- start: 1250
- end: 1257
}
]- start: 1250
- end: 1257
}
]
}
]
}block: Block {...}
- type: "Block"
- start: 1258
- end: 1322
children: [...] (3)
Declaration {...}
- type: "Declaration"
- start: 1262
- end: 1283
- property: "margin-bottom"
- value: "0.5rem"
} Declaration {...}
- type: "Declaration"
- start: 1287
- end: 1303
- property: "font-weight"
- value: "500"
} Declaration {...}
- type: "Declaration"
- start: 1307
- end: 1318
- property: "color"
- value: "#444"
}
]
}- start: 1250
- end: 1322
}
]content: {...}
- start: 1212
- end: 1323
- styles: "\n\t.container {\n\t\tdisplay: flex;\n\t}\n\t\n\t.header {\n\t\tmargin-bottom: 0.5rem;\n\t\tfont-weight: 500;\n\t\tcolor: #444;\n\t}\n"
- comment: null
}
}- js: []
- start: 1205
- end: 2247
- type: "Root"
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (11)
Text {...}
- type: "Text"
- start: 1203
- end: 1205
- raw: "\n\n"
- data: "\n\n"
} Text {...}
- type: "Text"
- start: 1331
- end: 1333
- raw: "\n\n"
- data: "\n\n"
} RegularElement {...}
- type: "RegularElement"
- start: 1333
- end: 1464
- name: "p"
- attributes: []
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1336
- end: 1344
- raw: "Click "
- data: "Click "
} RegularElement {...}
- type: "RegularElement"
- start: 1344
- end: 1393
- name: "span"
attributes: [...] (1)
Attribute {...}
- type: "Attribute"
- start: 1350
- end: 1373
- name: "style"
value: [...] (1)
Text {...}
- start: 1357
- end: 1372
- type: "Text"
- raw: "font-weight:500"
- data: "font-weight:500"
}
]
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (1)
Text {...}
- type: "Text"
- start: 1374
- end: 1386
- raw: "Switch Lists"
- data: "Switch Lists"
}
]
}
} Text {...}
- type: "Text"
- start: 1393
- end: 1460
- raw: " to see the undesired transition behavior in the non-wrapped case."
- data: " to see the undesired transition behavior in the non-wrapped case."
}
]
}
} Text {...}
- type: "Text"
- start: 1464
- end: 1466
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 1466
- end: 1529
- name: "button"
attributes: [...] (1)
OnDirective {...}
- start: 1474
- end: 1507
- type: "OnDirective"
- name: "click"
expression: ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 1484
- end: 1506
loc: {...}
start: {...}
- line: 59
- column: 18
}end: {...}
- line: 59
- column: 40
}
}- id: null
- expression: true
- generator: false
- async: false
- params: []
body: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1490
- end: 1506
loc: {...}
start: {...}
- line: 59
- column: 24
}end: {...}
- line: 59
- column: 40
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 1490
- end: 1496
loc: {...}
start: {...}
- line: 59
- column: 24
}end: {...}
- line: 59
- column: 30
}
}- name: "toggle"
}right: UnaryExpression {...}
- type: "UnaryExpression"
- start: 1499
- end: 1506
loc: {...}
start: {...}
- line: 59
- column: 33
}end: {...}
- line: 59
- column: 40
}
}- operator: "!"
- prefix: true
argument: Identifier {...}
- type: "Identifier"
- start: 1500
- end: 1506
loc: {...}
start: {...}
- line: 59
- column: 34
}end: {...}
- line: 59
- column: 40
}
}- name: "toggle"
}
}
}
}- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (1)
Text {...}
- type: "Text"
- start: 1508
- end: 1520
- raw: "Switch Lists"
- data: "Switch Lists"
}
]
}
} Text {...}
- type: "Text"
- start: 1529
- end: 1530
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 1530
- end: 1575
- name: "button"
attributes: [...] (1)
OnDirective {...}
- start: 1538
- end: 1555
- type: "OnDirective"
- name: "click"
expression: Identifier {...}
- type: "Identifier"
- start: 1548
- end: 1554
loc: {...}
start: {...}
- line: 60
- column: 18
}end: {...}
- line: 60
- column: 24
}
}- name: "addOne"
}- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (1)
Text {...}
- type: "Text"
- start: 1556
- end: 1566
- raw: "Add a Name"
- data: "Add a Name"
}
]
}
} Text {...}
- type: "Text"
- start: 1575
- end: 1576
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 1576
- end: 1627
- name: "button"
attributes: [...] (1)
OnDirective {...}
- start: 1584
- end: 1604
- type: "OnDirective"
- name: "click"
expression: Identifier {...}
- type: "Identifier"
- start: 1594
- end: 1603
loc: {...}
start: {...}
- line: 61
- column: 18
}end: {...}
- line: 61
- column: 27
}
}- name: "removeOne"
}- modifiers: []
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (1)
Text {...}
- type: "Text"
- start: 1605
- end: 1618
- raw: "Remove a Name"
- data: "Remove a Name"
}
]
}
} Text {...}
- type: "Text"
- start: 1627
- end: 1629
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 1629
- end: 2247
- name: "div"
attributes: [...] (1)
Attribute {...}
- type: "Attribute"
- start: 1634
- end: 1651
- name: "class"
value: [...] (1)
Text {...}
- start: 1641
- end: 1650
- type: "Text"
- raw: "container"
- data: "container"
}
]
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (5)
Text {...}
- type: "Text"
- start: 1652
- end: 1655
- raw: "\n\n\t"
- data: "\n\n\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1655
- end: 1962
- name: "div"
- attributes: []
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (5)
Text {...}
- type: "Text"
- start: 1660
- end: 1663
- raw: "\n\t\t"
- data: "\n\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1663
- end: 1724
- name: "div"
attributes: [...] (1)
Attribute {...}
- type: "Attribute"
- start: 1668
- end: 1682
- name: "class"
value: [...] (1)
Text {...}
- start: 1675
- end: 1681
- type: "Text"
- raw: "header"
- data: "header"
}
]
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1683
- end: 1693
- raw: "Wrapped in"
- data: "Wrapped in"
} RegularElement {...}
- type: "RegularElement"
- start: 1693
- end: 1698
- name: "br"
- attributes: []
fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 1698
- end: 1718
- raw: "single-element #each"
- data: "single-element #each"
}
]
}
} Text {...}
- type: "Text"
- start: 1724
- end: 1727
- raw: " "
- data: " "
} EachBlock {...}
- type: "EachBlock"
- start: 1727
- end: 1954
expression: ArrayExpression {...}
- type: "ArrayExpression"
- start: 1734
- end: 1742
loc: {...}
start: {...}
- line: 67
- column: 9
}end: {...}
- line: 67
- column: 17
}
}elements: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 1735
- end: 1741
loc: {...}
start: {...}
- line: 67
- column: 10
}end: {...}
- line: 67
- column: 16
}
}- name: "values"
}
]
}body: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1755
- end: 1758
- raw: "\n\t\t"
- data: "\n\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1758
- end: 1944
- name: "div"
- attributes: []
fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1763
- end: 1767
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
} EachBlock {...}
- type: "EachBlock"
- start: 1767
- end: 1935
expression: MemberExpression {...}
- type: "MemberExpression"
- start: 1774
- end: 1787
loc: {...}
start: {...}
- line: 69
- column: 10
}end: {...}
- line: 69
- column: 23
}
}object: Identifier {...}
- type: "Identifier"
- start: 1774
- end: 1780
loc: {...}
start: {...}
- line: 69
- column: 10
}end: {...}
- line: 69
- column: 16
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 1781
- end: 1787
loc: {...}
start: {...}
- line: 69
- column: 17
}end: {...}
- line: 69
- column: 23
}
}- name: "people"
}- computed: false
- optional: false
}body: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1813
- end: 1818
- raw: "\n\t\t\t\t"
- data: "\n\t\t\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1818
- end: 1924
- name: "div"
attributes: [...] (2)
AnimateDirective {...}
- start: 1823
- end: 1853
- type: "AnimateDirective"
- name: "flip"
expression: ObjectExpression {...}
- type: "ObjectExpression"
- start: 1837
- end: 1852
loc: {...}
start: {...}
- line: 70
- column: 23
}end: {...}
- line: 70
- column: 38
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 1838
- end: 1851
loc: {...}
start: {...}
- line: 70
- column: 24
}end: {...}
- line: 70
- column: 37
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1838
- end: 1846
loc: {...}
start: {...}
- line: 70
- column: 24
}end: {...}
- line: 70
- column: 32
}
}- name: "duration"
}value: Literal {...}
- type: "Literal"
- start: 1848
- end: 1851
loc: {...}
start: {...}
- line: 70
- column: 34
}end: {...}
- line: 70
- column: 37
}
}- value: 500
- raw: "500"
}- kind: "init"
}
]
}- modifiers: []
} TransitionDirective {...}
- start: 1854
- end: 1893
- type: "TransitionDirective"
- name: "fade"
expression: ObjectExpression {...}
- type: "ObjectExpression"
- start: 1877
- end: 1892
loc: {...}
start: {...}
- line: 70
- column: 63
}end: {...}
- line: 70
- column: 78
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 1878
- end: 1891
loc: {...}
start: {...}
- line: 70
- column: 64
}end: {...}
- line: 70
- column: 77
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 1878
- end: 1886
loc: {...}
start: {...}
- line: 70
- column: 64
}end: {...}
- line: 70
- column: 72
}
}- name: "duration"
}value: Literal {...}
- type: "Literal"
- start: 1888
- end: 1891
loc: {...}
start: {...}
- line: 70
- column: 74
}end: {...}
- line: 70
- column: 77
}
}- value: 500
- raw: "500"
}- kind: "init"
}
]
}modifiers: [...] (1)
- "local"
]- intro: true
- outro: true
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 1894
- end: 1900
- raw: "\n\t\t\t\t\t"
- data: "\n\t\t\t\t\t"
} ExpressionTag {...}
- type: "ExpressionTag"
- start: 1900
- end: 1913
expression: MemberExpression {...}
- type: "MemberExpression"
- start: 1901
- end: 1912
loc: {...}
start: {...}
- line: 71
- column: 6
}end: {...}
- line: 71
- column: 17
}
}object: Identifier {...}
- type: "Identifier"
- start: 1901
- end: 1907
loc: {...}
start: {...}
- line: 71
- column: 6
}end: {...}
- line: 71
- column: 12
}
}- name: "person"
}property: Identifier {...}
- type: "Identifier"
- start: 1908
- end: 1912
loc: {...}
start: {...}
- line: 71
- column: 13
}end: {...}
- line: 71
- column: 17
}
}- name: "name"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 1913
- end: 1918
- raw: "\n\t\t\t\t"
- data: "\n\t\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1924
- end: 1928
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
}
]
}context: Identifier {...}
- type: "Identifier"
- name: "person"
- start: 1791
loc: {...}
start: {...}
- line: 69
- column: 27
- character: 1791
}end: {...}
- line: 69
- column: 33
- character: 1797
}
}- end: 1797
- typeAnnotation: undefined
}- index: undefined
key: MemberExpression {...}
- type: "MemberExpression"
- start: 1799
- end: 1810
loc: {...}
start: {...}
- line: 69
- column: 35
}end: {...}
- line: 69
- column: 46
}
}object: Identifier {...}
- type: "Identifier"
- start: 1799
- end: 1805
loc: {...}
start: {...}
- line: 69
- column: 35
}end: {...}
- line: 69
- column: 41
}
}- name: "person"
}property: Identifier {...}
- type: "Identifier"
- start: 1806
- end: 1810
loc: {...}
start: {...}
- line: 69
- column: 42
}end: {...}
- line: 69
- column: 46
}
}- name: "name"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 1935
- end: 1938
- raw: "\n\t\t"
- data: "\n\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1944
- end: 1947
- raw: "\n\t\t"
- data: "\n\t\t"
}
]
}context: Identifier {...}
- type: "Identifier"
- name: "v"
- start: 1746
loc: {...}
start: {...}
- line: 67
- column: 21
- character: 1746
}end: {...}
- line: 67
- column: 22
- character: 1747
}
}- end: 1747
- typeAnnotation: undefined
}- index: undefined
key: MemberExpression {...}
- type: "MemberExpression"
- start: 1749
- end: 1753
loc: {...}
start: {...}
- line: 67
- column: 24
}end: {...}
- line: 67
- column: 28
}
}object: Identifier {...}
- type: "Identifier"
- start: 1749
- end: 1750
loc: {...}
start: {...}
- line: 67
- column: 24
}end: {...}
- line: 67
- column: 25
}
}- name: "v"
}property: Identifier {...}
- type: "Identifier"
- start: 1751
- end: 1753
loc: {...}
start: {...}
- line: 67
- column: 26
}end: {...}
- line: 67
- column: 28
}
}- name: "id"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 1954
- end: 1956
- raw: "\n\t"
- data: "\n\t"
}
]
}
} Text {...}
- type: "Text"
- start: 1962
- end: 1966
- raw: " "
- data: " "
} RegularElement {...}
- type: "RegularElement"
- start: 1966
- end: 2239
- name: "div"
attributes: [...] (1)
Attribute {...}
- type: "Attribute"
- start: 1971
- end: 1995
- name: "style"
value: [...] (1)
Text {...}
- start: 1978
- end: 1994
- type: "Text"
- raw: "margin-left:2rem"
- data: "margin-left:2rem"
}
]
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (5)
Text {...}
- type: "Text"
- start: 1996
- end: 1999
- raw: "\n\t\t"
- data: "\n\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 1999
- end: 2064
- name: "div"
attributes: [...] (1)
Attribute {...}
- type: "Attribute"
- start: 2004
- end: 2018
- name: "class"
value: [...] (1)
Text {...}
- start: 2011
- end: 2017
- type: "Text"
- raw: "header"
- data: "header"
}
]
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 2019
- end: 2033
- raw: "Not wrapped in"
- data: "Not wrapped in"
} RegularElement {...}
- type: "RegularElement"
- start: 2033
- end: 2038
- name: "br"
- attributes: []
fragment: Fragment {...}
- type: "Fragment"
- nodes: []
}
} Text {...}
- type: "Text"
- start: 2038
- end: 2058
- raw: "single-element #each"
- data: "single-element #each"
}
]
}
} Text {...}
- type: "Text"
- start: 2064
- end: 2067
- raw: " "
- data: " "
} EachBlock {...}
- type: "EachBlock"
- start: 2067
- end: 2231
expression: MemberExpression {...}
- type: "MemberExpression"
- start: 2074
- end: 2087
loc: {...}
start: {...}
- line: 80
- column: 9
}end: {...}
- line: 80
- column: 22
}
}object: Identifier {...}
- type: "Identifier"
- start: 2074
- end: 2080
loc: {...}
start: {...}
- line: 80
- column: 9
}end: {...}
- line: 80
- column: 15
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 2081
- end: 2087
loc: {...}
start: {...}
- line: 80
- column: 16
}end: {...}
- line: 80
- column: 22
}
}- name: "people"
}- computed: false
- optional: false
}body: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 2113
- end: 2117
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
} RegularElement {...}
- type: "RegularElement"
- start: 2117
- end: 2221
- name: "div"
attributes: [...] (2)
AnimateDirective {...}
- start: 2122
- end: 2152
- type: "AnimateDirective"
- name: "flip"
expression: ObjectExpression {...}
- type: "ObjectExpression"
- start: 2136
- end: 2151
loc: {...}
start: {...}
- line: 81
- column: 22
}end: {...}
- line: 81
- column: 37
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 2137
- end: 2150
loc: {...}
start: {...}
- line: 81
- column: 23
}end: {...}
- line: 81
- column: 36
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2137
- end: 2145
loc: {...}
start: {...}
- line: 81
- column: 23
}end: {...}
- line: 81
- column: 31
}
}- name: "duration"
}value: Literal {...}
- type: "Literal"
- start: 2147
- end: 2150
loc: {...}
start: {...}
- line: 81
- column: 33
}end: {...}
- line: 81
- column: 36
}
}- value: 500
- raw: "500"
}- kind: "init"
}
]
}- modifiers: []
} TransitionDirective {...}
- start: 2153
- end: 2192
- type: "TransitionDirective"
- name: "fade"
expression: ObjectExpression {...}
- type: "ObjectExpression"
- start: 2176
- end: 2191
loc: {...}
start: {...}
- line: 81
- column: 62
}end: {...}
- line: 81
- column: 77
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 2177
- end: 2190
loc: {...}
start: {...}
- line: 81
- column: 63
}end: {...}
- line: 81
- column: 76
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 2177
- end: 2185
loc: {...}
start: {...}
- line: 81
- column: 63
}end: {...}
- line: 81
- column: 71
}
}- name: "duration"
}value: Literal {...}
- type: "Literal"
- start: 2187
- end: 2190
loc: {...}
start: {...}
- line: 81
- column: 73
}end: {...}
- line: 81
- column: 76
}
}- value: 500
- raw: "500"
}- kind: "init"
}
]
}modifiers: [...] (1)
- "local"
]- intro: true
- outro: true
}
]fragment: Fragment {...}
- type: "Fragment"
nodes: [...] (3)
Text {...}
- type: "Text"
- start: 2193
- end: 2198
- raw: "\n\t\t\t\t"
- data: "\n\t\t\t\t"
} ExpressionTag {...}
- type: "ExpressionTag"
- start: 2198
- end: 2211
expression: MemberExpression {...}
- type: "MemberExpression"
- start: 2199
- end: 2210
loc: {...}
start: {...}
- line: 82
- column: 5
}end: {...}
- line: 82
- column: 16
}
}object: Identifier {...}
- type: "Identifier"
- start: 2199
- end: 2205
loc: {...}
start: {...}
- line: 82
- column: 5
}end: {...}
- line: 82
- column: 11
}
}- name: "person"
}property: Identifier {...}
- type: "Identifier"
- start: 2206
- end: 2210
loc: {...}
start: {...}
- line: 82
- column: 12
}end: {...}
- line: 82
- column: 16
}
}- name: "name"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 2211
- end: 2215
- raw: "\n\t\t\t"
- data: "\n\t\t\t"
}
]
}
} Text {...}
- type: "Text"
- start: 2221
- end: 2224
- raw: "\n\t\t"
- data: "\n\t\t"
}
]
}context: Identifier {...}
- type: "Identifier"
- name: "person"
- start: 2091
loc: {...}
start: {...}
- line: 80
- column: 26
- character: 2091
}end: {...}
- line: 80
- column: 32
- character: 2097
}
}- end: 2097
- typeAnnotation: undefined
}- index: undefined
key: MemberExpression {...}
- type: "MemberExpression"
- start: 2099
- end: 2110
loc: {...}
start: {...}
- line: 80
- column: 34
}end: {...}
- line: 80
- column: 45
}
}object: Identifier {...}
- type: "Identifier"
- start: 2099
- end: 2105
loc: {...}
start: {...}
- line: 80
- column: 34
}end: {...}
- line: 80
- column: 40
}
}- name: "person"
}property: Identifier {...}
- type: "Identifier"
- start: 2106
- end: 2110
loc: {...}
start: {...}
- line: 80
- column: 41
}end: {...}
- line: 80
- column: 45
}
}- name: "name"
}- computed: false
- optional: false
}
} Text {...}
- type: "Text"
- start: 2231
- end: 2233
- raw: "\n\t"
- data: "\n\t"
}
]
}
} Text {...}
- type: "Text"
- start: 2239
- end: 2241
- raw: "\n\n"
- data: "\n\n"
}
]
}
}
]
}- options: null
instance: Script {...}
- type: "Script"
- start: 0
- end: 1203
- context: "default"
content: Program {...}
- type: "Program"
- start: 8
- end: 1194
loc: {...}
start: {...}
- line: 1
- column: 0
}end: {...}
- line: 41
- column: 0
}
}body: [...] (10)
ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 10
- end: 48
loc: {...}
start: {...}
- line: 2
- column: 1
}end: {...}
- line: 2
- column: 39
}
}specifiers: [...] (1)
ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 19
- end: 23
loc: {...}
start: {...}
- line: 2
- column: 10
}end: {...}
- line: 2
- column: 14
}
}imported: Identifier {...}
- type: "Identifier"
- start: 19
- end: 23
loc: {...}
start: {...}
- line: 2
- column: 10
}end: {...}
- line: 2
- column: 14
}
}- name: "flip"
}local: Identifier {...}
- type: "Identifier"
- start: 19
- end: 23
loc: {...}
start: {...}
- line: 2
- column: 10
}end: {...}
- line: 2
- column: 14
}
}- name: "flip"
}
}
]source: Literal {...}
- type: "Literal"
- start: 31
- end: 47
loc: {...}
start: {...}
- line: 2
- column: 22
}end: {...}
- line: 2
- column: 38
}
}- value: "svelte/animate"
- raw: "'svelte/animate'"
}
} ImportDeclaration {...}
- type: "ImportDeclaration"
- start: 50
- end: 91
loc: {...}
start: {...}
- line: 3
- column: 1
}end: {...}
- line: 3
- column: 42
}
}specifiers: [...] (1)
ImportSpecifier {...}
- type: "ImportSpecifier"
- start: 59
- end: 63
loc: {...}
start: {...}
- line: 3
- column: 10
}end: {...}
- line: 3
- column: 14
}
}imported: Identifier {...}
- type: "Identifier"
- start: 59
- end: 63
loc: {...}
start: {...}
- line: 3
- column: 10
}end: {...}
- line: 3
- column: 14
}
}- name: "fade"
}local: Identifier {...}
- type: "Identifier"
- start: 59
- end: 63
loc: {...}
start: {...}
- line: 3
- column: 10
}end: {...}
- line: 3
- column: 14
}
}- name: "fade"
}
}
]source: Literal {...}
- type: "Literal"
- start: 71
- end: 90
loc: {...}
start: {...}
- line: 3
- column: 22
}end: {...}
- line: 3
- column: 41
}
}- value: "svelte/transition"
- raw: "'svelte/transition'"
}
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 94
- end: 285
loc: {...}
start: {...}
- line: 5
- column: 1
}end: {...}
- line: 5
- column: 192
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 98
- end: 284
loc: {...}
start: {...}
- line: 5
- column: 5
}end: {...}
- line: 5
- column: 191
}
}id: Identifier {...}
- type: "Identifier"
- start: 98
- end: 107
loc: {...}
start: {...}
- line: 5
- column: 5
}end: {...}
- line: 5
- column: 14
}
}- name: "allPeople"
}init: CallExpression {...}
- type: "CallExpression"
- start: 110
- end: 284
loc: {...}
start: {...}
- line: 5
- column: 17
}end: {...}
- line: 5
- column: 191
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 110
- end: 262
loc: {...}
start: {...}
- line: 5
- column: 17
}end: {...}
- line: 5
- column: 169
}
}object: ArrayExpression {...}
- type: "ArrayExpression"
- start: 110
- end: 258
loc: {...}
start: {...}
- line: 5
- column: 17
}end: {...}
- line: 5
- column: 165
}
}elements: [...] (16)
Literal {...}
- type: "Literal"
- start: 112
- end: 119
loc: {...}
start: {...}
- line: 5
- column: 19
}end: {...}
- line: 5
- column: 26
}
}- value: "Jerry"
- raw: "'Jerry'"
} Literal {...}
- type: "Literal"
- start: 121
- end: 129
loc: {...}
start: {...}
- line: 5
- column: 28
}end: {...}
- line: 5
- column: 36
}
}- value: "Elaine"
- raw: "'Elaine'"
} Literal {...}
- type: "Literal"
- start: 131
- end: 139
loc: {...}
start: {...}
- line: 5
- column: 38
}end: {...}
- line: 5
- column: 46
}
}- value: "George"
- raw: "'George'"
} Literal {...}
- type: "Literal"
- start: 141
- end: 149
loc: {...}
start: {...}
- line: 5
- column: 48
}end: {...}
- line: 5
- column: 56
}
}- value: "Kramer"
- raw: "'Kramer'"
} Literal {...}
- type: "Literal"
- start: 151
- end: 157
loc: {...}
start: {...}
- line: 5
- column: 58
}end: {...}
- line: 5
- column: 64
}
}- value: "Rick"
- raw: "'Rick'"
} Literal {...}
- type: "Literal"
- start: 159
- end: 166
loc: {...}
start: {...}
- line: 5
- column: 66
}end: {...}
- line: 5
- column: 73
}
}- value: "Jerry"
- raw: "'Jerry'"
} Literal {...}
- type: "Literal"
- start: 168
- end: 174
loc: {...}
start: {...}
- line: 5
- column: 75
}end: {...}
- line: 5
- column: 81
}
}- value: "Beth"
- raw: "'Beth'"
} Literal {...}
- type: "Literal"
- start: 176
- end: 183
loc: {...}
start: {...}
- line: 5
- column: 83
}end: {...}
- line: 5
- column: 90
}
}- value: "Morty"
- raw: "'Morty'"
} Literal {...}
- type: "Literal"
- start: 185
- end: 193
loc: {...}
start: {...}
- line: 5
- column: 92
}end: {...}
- line: 5
- column: 100
}
}- value: "Summer"
- raw: "'Summer'"
} Literal {...}
- type: "Literal"
- start: 195
- end: 201
loc: {...}
start: {...}
- line: 5
- column: 102
}end: {...}
- line: 5
- column: 108
}
}- value: "Abed"
- raw: "'Abed'"
} Literal {...}
- type: "Literal"
- start: 203
- end: 209
loc: {...}
start: {...}
- line: 5
- column: 110
}end: {...}
- line: 5
- column: 116
}
}- value: "Troy"
- raw: "'Troy'"
} Literal {...}
- type: "Literal"
- start: 211
- end: 217
loc: {...}
start: {...}
- line: 5
- column: 118
}end: {...}
- line: 5
- column: 124
}
}- value: "Jeff"
- raw: "'Jeff'"
} Literal {...}
- type: "Literal"
- start: 219
- end: 227
loc: {...}
start: {...}
- line: 5
- column: 126
}end: {...}
- line: 5
- column: 134
}
}- value: "Britta"
- raw: "'Britta'"
} Literal {...}
- type: "Literal"
- start: 229
- end: 236
loc: {...}
start: {...}
- line: 5
- column: 136
}end: {...}
- line: 5
- column: 143
}
}- value: "Annie"
- raw: "'Annie'"
} Literal {...}
- type: "Literal"
- start: 238
- end: 247
loc: {...}
start: {...}
- line: 5
- column: 145
}end: {...}
- line: 5
- column: 154
}
}- value: "Shirley"
- raw: "'Shirley'"
} Literal {...}
- type: "Literal"
- start: 249
- end: 257
loc: {...}
start: {...}
- line: 5
- column: 156
}end: {...}
- line: 5
- column: 164
}
}- value: "Pierce"
- raw: "'Pierce'"
}
]
}property: Identifier {...}
- type: "Identifier"
- start: 259
- end: 262
loc: {...}
start: {...}
- line: 5
- column: 166
}end: {...}
- line: 5
- column: 169
}
}- name: "map"
}- computed: false
- optional: false
}arguments: [...] (1)
ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 263
- end: 283
loc: {...}
start: {...}
- line: 5
- column: 170
}end: {...}
- line: 5
- column: 190
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 264
- end: 268
loc: {...}
start: {...}
- line: 5
- column: 171
}end: {...}
- line: 5
- column: 175
}
}- name: "name"
}
]body: ObjectExpression {...}
- type: "ObjectExpression"
- start: 274
- end: 282
loc: {...}
start: {...}
- line: 5
- column: 181
}end: {...}
- line: 5
- column: 189
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 276
- end: 280
loc: {...}
start: {...}
- line: 5
- column: 183
}end: {...}
- line: 5
- column: 187
}
}- method: false
- shorthand: true
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 276
- end: 280
loc: {...}
start: {...}
- line: 5
- column: 183
}end: {...}
- line: 5
- column: 187
}
}- name: "name"
}- kind: "init"
value: Identifier {...}
- type: "Identifier"
- start: 276
- end: 280
loc: {...}
start: {...}
- line: 5
- column: 183
}end: {...}
- line: 5
- column: 187
}
}- name: "name"
}
}
]
}
}
]- optional: false
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 288
- end: 420
loc: {...}
start: {...}
- line: 7
- column: 1
}end: {...}
- line: 10
- column: 3
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 292
- end: 419
loc: {...}
start: {...}
- line: 7
- column: 5
}end: {...}
- line: 10
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 292
- end: 301
loc: {...}
start: {...}
- line: 7
- column: 5
}end: {...}
- line: 7
- column: 14
}
}- name: "oneValues"
}init: ObjectExpression {...}
- type: "ObjectExpression"
- start: 304
- end: 419
loc: {...}
start: {...}
- line: 7
- column: 17
}end: {...}
- line: 10
- column: 2
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 308
- end: 322
loc: {...}
start: {...}
- line: 8
- column: 2
}end: {...}
- line: 8
- column: 16
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 308
- end: 310
loc: {...}
start: {...}
- line: 8
- column: 2
}end: {...}
- line: 8
- column: 4
}
}- name: "id"
}value: Literal {...}
- type: "Literal"
- start: 312
- end: 322
loc: {...}
start: {...}
- line: 8
- column: 6
}end: {...}
- line: 8
- column: 16
}
}- value: "seinfeld"
- raw: "'seinfeld'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 326
- end: 416
loc: {...}
start: {...}
- line: 9
- column: 2
}end: {...}
- line: 9
- column: 92
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 326
- end: 332
loc: {...}
start: {...}
- line: 9
- column: 2
}end: {...}
- line: 9
- column: 8
}
}- name: "people"
}value: ArrayExpression {...}
- type: "ArrayExpression"
- start: 335
- end: 416
loc: {...}
start: {...}
- line: 9
- column: 11
}end: {...}
- line: 9
- column: 92
}
}elements: [...] (4)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 337
- end: 354
loc: {...}
start: {...}
- line: 9
- column: 13
}end: {...}
- line: 9
- column: 30
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 339
- end: 352
loc: {...}
start: {...}
- line: 9
- column: 15
}end: {...}
- line: 9
- column: 28
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 339
- end: 343
loc: {...}
start: {...}
- line: 9
- column: 15
}end: {...}
- line: 9
- column: 19
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 345
- end: 352
loc: {...}
start: {...}
- line: 9
- column: 21
}end: {...}
- line: 9
- column: 28
}
}- value: "Jerry"
- raw: "'Jerry'"
}- kind: "init"
}
]
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 356
- end: 374
loc: {...}
start: {...}
- line: 9
- column: 32
}end: {...}
- line: 9
- column: 50
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 358
- end: 372
loc: {...}
start: {...}
- line: 9
- column: 34
}end: {...}
- line: 9
- column: 48
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 358
- end: 362
loc: {...}
start: {...}
- line: 9
- column: 34
}end: {...}
- line: 9
- column: 38
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 364
- end: 372
loc: {...}
start: {...}
- line: 9
- column: 40
}end: {...}
- line: 9
- column: 48
}
}- value: "Elaine"
- raw: "'Elaine'"
}- kind: "init"
}
]
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 376
- end: 394
loc: {...}
start: {...}
- line: 9
- column: 52
}end: {...}
- line: 9
- column: 70
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 378
- end: 392
loc: {...}
start: {...}
- line: 9
- column: 54
}end: {...}
- line: 9
- column: 68
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 378
- end: 382
loc: {...}
start: {...}
- line: 9
- column: 54
}end: {...}
- line: 9
- column: 58
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 384
- end: 392
loc: {...}
start: {...}
- line: 9
- column: 60
}end: {...}
- line: 9
- column: 68
}
}- value: "George"
- raw: "'George'"
}- kind: "init"
}
]
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 396
- end: 414
loc: {...}
start: {...}
- line: 9
- column: 72
}end: {...}
- line: 9
- column: 90
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 398
- end: 412
loc: {...}
start: {...}
- line: 9
- column: 74
}end: {...}
- line: 9
- column: 88
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 398
- end: 402
loc: {...}
start: {...}
- line: 9
- column: 74
}end: {...}
- line: 9
- column: 78
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 404
- end: 412
loc: {...}
start: {...}
- line: 9
- column: 80
}end: {...}
- line: 9
- column: 88
}
}- value: "Kramer"
- raw: "'Kramer'"
}- kind: "init"
}
]
}
]
}- kind: "init"
}
]
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 423
- end: 575
loc: {...}
start: {...}
- line: 12
- column: 1
}end: {...}
- line: 15
- column: 3
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 427
- end: 574
loc: {...}
start: {...}
- line: 12
- column: 5
}end: {...}
- line: 15
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 427
- end: 436
loc: {...}
start: {...}
- line: 12
- column: 5
}end: {...}
- line: 12
- column: 14
}
}- name: "twoValues"
}init: ObjectExpression {...}
- type: "ObjectExpression"
- start: 439
- end: 574
loc: {...}
start: {...}
- line: 12
- column: 17
}end: {...}
- line: 15
- column: 2
}
}properties: [...] (2)
Property {...}
- type: "Property"
- start: 443
- end: 463
loc: {...}
start: {...}
- line: 13
- column: 2
}end: {...}
- line: 13
- column: 22
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 443
- end: 445
loc: {...}
start: {...}
- line: 13
- column: 2
}end: {...}
- line: 13
- column: 4
}
}- name: "id"
}value: Literal {...}
- type: "Literal"
- start: 447
- end: 463
loc: {...}
start: {...}
- line: 13
- column: 6
}end: {...}
- line: 13
- column: 22
}
}- value: "rick-and-morty"
- raw: "'rick-and-morty'"
}- kind: "init"
} Property {...}
- type: "Property"
- start: 467
- end: 571
loc: {...}
start: {...}
- line: 14
- column: 2
}end: {...}
- line: 14
- column: 106
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 467
- end: 473
loc: {...}
start: {...}
- line: 14
- column: 2
}end: {...}
- line: 14
- column: 8
}
}- name: "people"
}value: ArrayExpression {...}
- type: "ArrayExpression"
- start: 475
- end: 571
loc: {...}
start: {...}
- line: 14
- column: 10
}end: {...}
- line: 14
- column: 106
}
}elements: [...] (5)
ObjectExpression {...}
- type: "ObjectExpression"
- start: 477
- end: 493
loc: {...}
start: {...}
- line: 14
- column: 12
}end: {...}
- line: 14
- column: 28
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 479
- end: 491
loc: {...}
start: {...}
- line: 14
- column: 14
}end: {...}
- line: 14
- column: 26
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 479
- end: 483
loc: {...}
start: {...}
- line: 14
- column: 14
}end: {...}
- line: 14
- column: 18
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 485
- end: 491
loc: {...}
start: {...}
- line: 14
- column: 20
}end: {...}
- line: 14
- column: 26
}
}- value: "Rick"
- raw: "'Rick'"
}- kind: "init"
}
]
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 495
- end: 512
loc: {...}
start: {...}
- line: 14
- column: 30
}end: {...}
- line: 14
- column: 47
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 497
- end: 510
loc: {...}
start: {...}
- line: 14
- column: 32
}end: {...}
- line: 14
- column: 45
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 497
- end: 501
loc: {...}
start: {...}
- line: 14
- column: 32
}end: {...}
- line: 14
- column: 36
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 503
- end: 510
loc: {...}
start: {...}
- line: 14
- column: 38
}end: {...}
- line: 14
- column: 45
}
}- value: "Jerry"
- raw: "'Jerry'"
}- kind: "init"
}
]
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 514
- end: 530
loc: {...}
start: {...}
- line: 14
- column: 49
}end: {...}
- line: 14
- column: 65
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 516
- end: 528
loc: {...}
start: {...}
- line: 14
- column: 51
}end: {...}
- line: 14
- column: 63
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 516
- end: 520
loc: {...}
start: {...}
- line: 14
- column: 51
}end: {...}
- line: 14
- column: 55
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 522
- end: 528
loc: {...}
start: {...}
- line: 14
- column: 57
}end: {...}
- line: 14
- column: 63
}
}- value: "Beth"
- raw: "'Beth'"
}- kind: "init"
}
]
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 532
- end: 549
loc: {...}
start: {...}
- line: 14
- column: 67
}end: {...}
- line: 14
- column: 84
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 534
- end: 547
loc: {...}
start: {...}
- line: 14
- column: 69
}end: {...}
- line: 14
- column: 82
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 534
- end: 538
loc: {...}
start: {...}
- line: 14
- column: 69
}end: {...}
- line: 14
- column: 73
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 540
- end: 547
loc: {...}
start: {...}
- line: 14
- column: 75
}end: {...}
- line: 14
- column: 82
}
}- value: "Morty"
- raw: "'Morty'"
}- kind: "init"
}
]
} ObjectExpression {...}
- type: "ObjectExpression"
- start: 551
- end: 569
loc: {...}
start: {...}
- line: 14
- column: 86
}end: {...}
- line: 14
- column: 104
}
}properties: [...] (1)
Property {...}
- type: "Property"
- start: 553
- end: 567
loc: {...}
start: {...}
- line: 14
- column: 88
}end: {...}
- line: 14
- column: 102
}
}- method: false
- shorthand: false
- computed: false
key: Identifier {...}
- type: "Identifier"
- start: 553
- end: 557
loc: {...}
start: {...}
- line: 14
- column: 88
}end: {...}
- line: 14
- column: 92
}
}- name: "name"
}value: Literal {...}
- type: "Literal"
- start: 559
- end: 567
loc: {...}
start: {...}
- line: 14
- column: 94
}end: {...}
- line: 14
- column: 102
}
}- value: "Summer"
- raw: "'Summer'"
}- kind: "init"
}
]
}
]
}- kind: "init"
}
]
}
}
]- kind: "let"
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 579
- end: 598
loc: {...}
start: {...}
- line: 17
- column: 1
}end: {...}
- line: 17
- column: 20
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 583
- end: 597
loc: {...}
start: {...}
- line: 17
- column: 5
}end: {...}
- line: 17
- column: 19
}
}id: Identifier {...}
- type: "Identifier"
- start: 583
- end: 589
loc: {...}
start: {...}
- line: 17
- column: 5
}end: {...}
- line: 17
- column: 11
}
}- name: "toggle"
}init: Literal {...}
- type: "Literal"
- start: 592
- end: 597
loc: {...}
start: {...}
- line: 17
- column: 14
}end: {...}
- line: 17
- column: 19
}
}- value: false
- raw: "false"
}
}
]- kind: "let"
} LabeledStatement {...}
- type: "LabeledStatement"
- start: 600
- end: 643
loc: {...}
start: {...}
- line: 18
- column: 1
}end: {...}
- line: 18
- column: 44
}
}body: ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 603
- end: 643
loc: {...}
start: {...}
- line: 18
- column: 4
}end: {...}
- line: 18
- column: 44
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 603
- end: 642
loc: {...}
start: {...}
- line: 18
- column: 4
}end: {...}
- line: 18
- column: 43
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 603
- end: 609
loc: {...}
start: {...}
- line: 18
- column: 4
}end: {...}
- line: 18
- column: 10
}
}- name: "values"
}right: ConditionalExpression {...}
- type: "ConditionalExpression"
- start: 612
- end: 642
loc: {...}
start: {...}
- line: 18
- column: 13
}end: {...}
- line: 18
- column: 43
}
}test: Identifier {...}
- type: "Identifier"
- start: 612
- end: 618
loc: {...}
start: {...}
- line: 18
- column: 13
}end: {...}
- line: 18
- column: 19
}
}- name: "toggle"
}consequent: Identifier {...}
- type: "Identifier"
- start: 621
- end: 630
loc: {...}
start: {...}
- line: 18
- column: 22
}end: {...}
- line: 18
- column: 31
}
}- name: "oneValues"
}alternate: Identifier {...}
- type: "Identifier"
- start: 633
- end: 642
loc: {...}
start: {...}
- line: 18
- column: 34
}end: {...}
- line: 18
- column: 43
}
}- name: "twoValues"
}
}
}
}label: Identifier {...}
- type: "Identifier"
- start: 600
- end: 601
loc: {...}
start: {...}
- line: 18
- column: 1
}end: {...}
- line: 18
- column: 2
}
}- name: "$"
}
} LabeledStatement {...}
- type: "LabeledStatement"
- start: 647
- end: 708
loc: {...}
start: {...}
- line: 20
- column: 1
}end: {...}
- line: 20
- column: 62
}
}body: ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 650
- end: 708
loc: {...}
start: {...}
- line: 20
- column: 4
}end: {...}
- line: 20
- column: 62
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 650
- end: 707
loc: {...}
start: {...}
- line: 20
- column: 4
}end: {...}
- line: 20
- column: 61
}
}- operator: "="
left: Identifier {...}
- type: "Identifier"
- start: 650
- end: 663
loc: {...}
start: {...}
- line: 20
- column: 4
}end: {...}
- line: 20
- column: 17
}
}- name: "currentPeople"
}right: NewExpression {...}
- type: "NewExpression"
- start: 666
- end: 707
loc: {...}
start: {...}
- line: 20
- column: 20
}end: {...}
- line: 20
- column: 61
}
}callee: Identifier {...}
- type: "Identifier"
- start: 670
- end: 673
loc: {...}
start: {...}
- line: 20
- column: 24
}end: {...}
- line: 20
- column: 27
}
}- name: "Set"
}arguments: [...] (1)
CallExpression {...}
- type: "CallExpression"
- start: 674
- end: 706
loc: {...}
start: {...}
- line: 20
- column: 28
}end: {...}
- line: 20
- column: 60
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 674
- end: 691
loc: {...}
start: {...}
- line: 20
- column: 28
}end: {...}
- line: 20
- column: 45
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 674
- end: 687
loc: {...}
start: {...}
- line: 20
- column: 28
}end: {...}
- line: 20
- column: 41
}
}object: Identifier {...}
- type: "Identifier"
- start: 674
- end: 680
loc: {...}
start: {...}
- line: 20
- column: 28
}end: {...}
- line: 20
- column: 34
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 681
- end: 687
loc: {...}
start: {...}
- line: 20
- column: 35
}end: {...}
- line: 20
- column: 41
}
}- name: "people"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 688
- end: 691
loc: {...}
start: {...}
- line: 20
- column: 42
}end: {...}
- line: 20
- column: 45
}
}- name: "map"
}- computed: false
- optional: false
}arguments: [...] (1)
ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 692
- end: 705
loc: {...}
start: {...}
- line: 20
- column: 46
}end: {...}
- line: 20
- column: 59
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 693
- end: 694
loc: {...}
start: {...}
- line: 20
- column: 47
}end: {...}
- line: 20
- column: 48
}
}- name: "p"
}
]body: MemberExpression {...}
- type: "MemberExpression"
- start: 699
- end: 705
loc: {...}
start: {...}
- line: 20
- column: 53
}end: {...}
- line: 20
- column: 59
}
}object: Identifier {...}
- type: "Identifier"
- start: 699
- end: 700
loc: {...}
start: {...}
- line: 20
- column: 53
}end: {...}
- line: 20
- column: 54
}
}- name: "p"
}property: Identifier {...}
- type: "Identifier"
- start: 701
- end: 705
loc: {...}
start: {...}
- line: 20
- column: 55
}end: {...}
- line: 20
- column: 59
}
}- name: "name"
}- computed: false
- optional: false
}
}
]- optional: false
}
]
}
}
}label: Identifier {...}
- type: "Identifier"
- start: 647
- end: 648
loc: {...}
start: {...}
- line: 20
- column: 1
}end: {...}
- line: 20
- column: 2
}
}- name: "$"
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 712
- end: 1002
loc: {...}
start: {...}
- line: 22
- column: 1
}end: {...}
- line: 32
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 721
- end: 727
loc: {...}
start: {...}
- line: 22
- column: 10
}end: {...}
- line: 22
- column: 16
}
}- name: "addOne"
}- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 730
- end: 1002
loc: {...}
start: {...}
- line: 22
- column: 19
}end: {...}
- line: 32
- column: 2
}
}body: [...] (4)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 734
- end: 797
loc: {...}
start: {...}
- line: 23
- column: 2
}end: {...}
- line: 23
- column: 65
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 738
- end: 797
loc: {...}
start: {...}
- line: 23
- column: 6
}end: {...}
- line: 23
- column: 65
}
}id: Identifier {...}
- type: "Identifier"
- start: 738
- end: 745
loc: {...}
start: {...}
- line: 23
- column: 6
}end: {...}
- line: 23
- column: 13
}
}- name: "newItem"
}init: CallExpression {...}
- type: "CallExpression"
- start: 748
- end: 797
loc: {...}
start: {...}
- line: 23
- column: 16
}end: {...}
- line: 23
- column: 65
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 748
- end: 762
loc: {...}
start: {...}
- line: 23
- column: 16
}end: {...}
- line: 23
- column: 30
}
}object: Identifier {...}
- type: "Identifier"
- start: 748
- end: 757
loc: {...}
start: {...}
- line: 23
- column: 16
}end: {...}
- line: 23
- column: 25
}
}- name: "allPeople"
}property: Identifier {...}
- type: "Identifier"
- start: 758
- end: 762
loc: {...}
start: {...}
- line: 23
- column: 26
}end: {...}
- line: 23
- column: 30
}
}- name: "find"
}- computed: false
- optional: false
}arguments: [...] (1)
ArrowFunctionExpression {...}
- type: "ArrowFunctionExpression"
- start: 763
- end: 796
loc: {...}
start: {...}
- line: 23
- column: 31
}end: {...}
- line: 23
- column: 64
}
}- id: null
- expression: true
- generator: false
- async: false
params: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 764
- end: 765
loc: {...}
start: {...}
- line: 23
- column: 32
}end: {...}
- line: 23
- column: 33
}
}- name: "p"
}
]body: UnaryExpression {...}
- type: "UnaryExpression"
- start: 770
- end: 796
loc: {...}
start: {...}
- line: 23
- column: 38
}end: {...}
- line: 23
- column: 64
}
}- operator: "!"
- prefix: true
argument: CallExpression {...}
- type: "CallExpression"
- start: 771
- end: 796
loc: {...}
start: {...}
- line: 23
- column: 39
}end: {...}
- line: 23
- column: 64
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 771
- end: 788
loc: {...}
start: {...}
- line: 23
- column: 39
}end: {...}
- line: 23
- column: 56
}
}object: Identifier {...}
- type: "Identifier"
- start: 771
- end: 784
loc: {...}
start: {...}
- line: 23
- column: 39
}end: {...}
- line: 23
- column: 52
}
}- name: "currentPeople"
}property: Identifier {...}
- type: "Identifier"
- start: 785
- end: 788
loc: {...}
start: {...}
- line: 23
- column: 53
}end: {...}
- line: 23
- column: 56
}
}- name: "has"
}- computed: false
- optional: false
}arguments: [...] (1)
MemberExpression {...}
- type: "MemberExpression"
- start: 789
- end: 795
loc: {...}
start: {...}
- line: 23
- column: 57
}end: {...}
- line: 23
- column: 63
}
}object: Identifier {...}
- type: "Identifier"
- start: 789
- end: 790
loc: {...}
start: {...}
- line: 23
- column: 57
}end: {...}
- line: 23
- column: 58
}
}- name: "p"
}property: Identifier {...}
- type: "Identifier"
- start: 791
- end: 795
loc: {...}
start: {...}
- line: 23
- column: 59
}end: {...}
- line: 23
- column: 63
}
}- name: "name"
}- computed: false
- optional: false
}
]- optional: false
}
}
}
]- optional: false
}
}
]- kind: "let"
} IfStatement {...}
- type: "IfStatement"
- start: 800
- end: 824
loc: {...}
start: {...}
- line: 24
- column: 2
}end: {...}
- line: 24
- column: 26
}
}test: UnaryExpression {...}
- type: "UnaryExpression"
- start: 803
- end: 811
loc: {...}
start: {...}
- line: 24
- column: 5
}end: {...}
- line: 24
- column: 13
}
}- operator: "!"
- prefix: true
argument: Identifier {...}
- type: "Identifier"
- start: 804
- end: 811
loc: {...}
start: {...}
- line: 24
- column: 6
}end: {...}
- line: 24
- column: 13
}
}- name: "newItem"
}
}consequent: BlockStatement {...}
- type: "BlockStatement"
- start: 813
- end: 824
loc: {...}
start: {...}
- line: 24
- column: 15
}end: {...}
- line: 24
- column: 26
}
}body: [...] (1)
ReturnStatement {...}
- type: "ReturnStatement"
- start: 815
- end: 822
loc: {...}
start: {...}
- line: 24
- column: 17
}end: {...}
- line: 24
- column: 24
}
}- argument: null
}
]
}- alternate: null
} VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 827
- end: 888
loc: {...}
start: {...}
- line: 25
- column: 2
}end: {...}
- line: 25
- column: 63
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 831
- end: 887
loc: {...}
start: {...}
- line: 25
- column: 6
}end: {...}
- line: 25
- column: 62
}
}id: Identifier {...}
- type: "Identifier"
- start: 831
- end: 836
loc: {...}
start: {...}
- line: 25
- column: 6
}end: {...}
- line: 25
- column: 11
}
}- name: "index"
}init: CallExpression {...}
- type: "CallExpression"
- start: 839
- end: 887
loc: {...}
start: {...}
- line: 25
- column: 14
}end: {...}
- line: 25
- column: 62
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 839
- end: 849
loc: {...}
start: {...}
- line: 25
- column: 14
}end: {...}
- line: 25
- column: 24
}
}object: Identifier {...}
- type: "Identifier"
- start: 839
- end: 843
loc: {...}
start: {...}
- line: 25
- column: 14
}end: {...}
- line: 25
- column: 18
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 844
- end: 849
loc: {...}
start: {...}
- line: 25
- column: 19
}end: {...}
- line: 25
- column: 24
}
}- name: "floor"
}- computed: false
- optional: false
}arguments: [...] (1)
BinaryExpression {...}
- type: "BinaryExpression"
- start: 850
- end: 886
loc: {...}
start: {...}
- line: 25
- column: 25
}end: {...}
- line: 25
- column: 61
}
}left: CallExpression {...}
- type: "CallExpression"
- start: 850
- end: 863
loc: {...}
start: {...}
- line: 25
- column: 25
}end: {...}
- line: 25
- column: 38
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 850
- end: 861
loc: {...}
start: {...}
- line: 25
- column: 25
}end: {...}
- line: 25
- column: 36
}
}object: Identifier {...}
- type: "Identifier"
- start: 850
- end: 854
loc: {...}
start: {...}
- line: 25
- column: 25
}end: {...}
- line: 25
- column: 29
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 855
- end: 861
loc: {...}
start: {...}
- line: 25
- column: 30
}end: {...}
- line: 25
- column: 36
}
}- name: "random"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}- operator: "*"
right: MemberExpression {...}
- type: "MemberExpression"
- start: 866
- end: 886
loc: {...}
start: {...}
- line: 25
- column: 41
}end: {...}
- line: 25
- column: 61
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 866
- end: 879
loc: {...}
start: {...}
- line: 25
- column: 41
}end: {...}
- line: 25
- column: 54
}
}object: Identifier {...}
- type: "Identifier"
- start: 866
- end: 872
loc: {...}
start: {...}
- line: 25
- column: 41
}end: {...}
- line: 25
- column: 47
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 873
- end: 879
loc: {...}
start: {...}
- line: 25
- column: 48
}end: {...}
- line: 25
- column: 54
}
}- name: "people"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 880
- end: 886
loc: {...}
start: {...}
- line: 25
- column: 55
}end: {...}
- line: 25
- column: 61
}
}- name: "length"
}- computed: false
- optional: false
}
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 894
- end: 999
loc: {...}
start: {...}
- line: 27
- column: 2
}end: {...}
- line: 31
- column: 4
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 894
- end: 998
loc: {...}
start: {...}
- line: 27
- column: 2
}end: {...}
- line: 31
- column: 3
}
}- operator: "="
left: MemberExpression {...}
- type: "MemberExpression"
- start: 894
- end: 907
loc: {...}
start: {...}
- line: 27
- column: 2
}end: {...}
- line: 27
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 894
- end: 900
loc: {...}
start: {...}
- line: 27
- column: 2
}end: {...}
- line: 27
- column: 8
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 901
- end: 907
loc: {...}
start: {...}
- line: 27
- column: 9
}end: {...}
- line: 27
- column: 15
}
}- name: "people"
}- computed: false
- optional: false
}right: ArrayExpression {...}
- type: "ArrayExpression"
- start: 910
- end: 998
loc: {...}
start: {...}
- line: 27
- column: 18
}end: {...}
- line: 31
- column: 3
}
}elements: [...] (3)
SpreadElement {...}
- type: "SpreadElement"
- start: 915
- end: 947
loc: {...}
start: {...}
- line: 28
- column: 3
}end: {...}
- line: 28
- column: 35
}
}argument: CallExpression {...}
- type: "CallExpression"
- start: 918
- end: 947
loc: {...}
start: {...}
- line: 28
- column: 6
}end: {...}
- line: 28
- column: 35
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 918
- end: 937
loc: {...}
start: {...}
- line: 28
- column: 6
}end: {...}
- line: 28
- column: 25
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 918
- end: 931
loc: {...}
start: {...}
- line: 28
- column: 6
}end: {...}
- line: 28
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 918
- end: 924
loc: {...}
start: {...}
- line: 28
- column: 6
}end: {...}
- line: 28
- column: 12
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 925
- end: 931
loc: {...}
start: {...}
- line: 28
- column: 13
}end: {...}
- line: 28
- column: 19
}
}- name: "people"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 932
- end: 937
loc: {...}
start: {...}
- line: 28
- column: 20
}end: {...}
- line: 28
- column: 25
}
}- name: "slice"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 938
- end: 939
loc: {...}
start: {...}
- line: 28
- column: 26
}end: {...}
- line: 28
- column: 27
}
}- value: 0
- raw: "0"
} Identifier {...}
- type: "Identifier"
- start: 941
- end: 946
loc: {...}
start: {...}
- line: 28
- column: 29
}end: {...}
- line: 28
- column: 34
}
}- name: "index"
}
]- optional: false
}
} Identifier {...}
- type: "Identifier"
- start: 952
- end: 959
loc: {...}
start: {...}
- line: 29
- column: 3
}end: {...}
- line: 29
- column: 10
}
}- name: "newItem"
} SpreadElement {...}
- type: "SpreadElement"
- start: 964
- end: 993
loc: {...}
start: {...}
- line: 30
- column: 3
}end: {...}
- line: 30
- column: 32
}
}argument: CallExpression {...}
- type: "CallExpression"
- start: 967
- end: 993
loc: {...}
start: {...}
- line: 30
- column: 6
}end: {...}
- line: 30
- column: 32
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 967
- end: 986
loc: {...}
start: {...}
- line: 30
- column: 6
}end: {...}
- line: 30
- column: 25
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 967
- end: 980
loc: {...}
start: {...}
- line: 30
- column: 6
}end: {...}
- line: 30
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 967
- end: 973
loc: {...}
start: {...}
- line: 30
- column: 6
}end: {...}
- line: 30
- column: 12
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 974
- end: 980
loc: {...}
start: {...}
- line: 30
- column: 13
}end: {...}
- line: 30
- column: 19
}
}- name: "people"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 981
- end: 986
loc: {...}
start: {...}
- line: 30
- column: 20
}end: {...}
- line: 30
- column: 25
}
}- name: "slice"
}- computed: false
- optional: false
}arguments: [...] (1)
Identifier {...}
- type: "Identifier"
- start: 987
- end: 992
loc: {...}
start: {...}
- line: 30
- column: 26
}end: {...}
- line: 30
- column: 31
}
}- name: "index"
}
]- optional: false
}
}
]
}
}
}
]
}
} FunctionDeclaration {...}
- type: "FunctionDeclaration"
- start: 1006
- end: 1193
loc: {...}
start: {...}
- line: 34
- column: 1
}end: {...}
- line: 40
- column: 2
}
}id: Identifier {...}
- type: "Identifier"
- start: 1015
- end: 1024
loc: {...}
start: {...}
- line: 34
- column: 10
}end: {...}
- line: 34
- column: 19
}
}- name: "removeOne"
}- expression: false
- generator: false
- async: false
- params: []
body: BlockStatement {...}
- type: "BlockStatement"
- start: 1027
- end: 1193
loc: {...}
start: {...}
- line: 34
- column: 22
}end: {...}
- line: 40
- column: 2
}
}body: [...] (2)
VariableDeclaration {...}
- type: "VariableDeclaration"
- start: 1031
- end: 1092
loc: {...}
start: {...}
- line: 35
- column: 2
}end: {...}
- line: 35
- column: 63
}
}declarations: [...] (1)
VariableDeclarator {...}
- type: "VariableDeclarator"
- start: 1035
- end: 1091
loc: {...}
start: {...}
- line: 35
- column: 6
}end: {...}
- line: 35
- column: 62
}
}id: Identifier {...}
- type: "Identifier"
- start: 1035
- end: 1040
loc: {...}
start: {...}
- line: 35
- column: 6
}end: {...}
- line: 35
- column: 11
}
}- name: "index"
}init: CallExpression {...}
- type: "CallExpression"
- start: 1043
- end: 1091
loc: {...}
start: {...}
- line: 35
- column: 14
}end: {...}
- line: 35
- column: 62
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1043
- end: 1053
loc: {...}
start: {...}
- line: 35
- column: 14
}end: {...}
- line: 35
- column: 24
}
}object: Identifier {...}
- type: "Identifier"
- start: 1043
- end: 1047
loc: {...}
start: {...}
- line: 35
- column: 14
}end: {...}
- line: 35
- column: 18
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 1048
- end: 1053
loc: {...}
start: {...}
- line: 35
- column: 19
}end: {...}
- line: 35
- column: 24
}
}- name: "floor"
}- computed: false
- optional: false
}arguments: [...] (1)
BinaryExpression {...}
- type: "BinaryExpression"
- start: 1054
- end: 1090
loc: {...}
start: {...}
- line: 35
- column: 25
}end: {...}
- line: 35
- column: 61
}
}left: CallExpression {...}
- type: "CallExpression"
- start: 1054
- end: 1067
loc: {...}
start: {...}
- line: 35
- column: 25
}end: {...}
- line: 35
- column: 38
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1054
- end: 1065
loc: {...}
start: {...}
- line: 35
- column: 25
}end: {...}
- line: 35
- column: 36
}
}object: Identifier {...}
- type: "Identifier"
- start: 1054
- end: 1058
loc: {...}
start: {...}
- line: 35
- column: 25
}end: {...}
- line: 35
- column: 29
}
}- name: "Math"
}property: Identifier {...}
- type: "Identifier"
- start: 1059
- end: 1065
loc: {...}
start: {...}
- line: 35
- column: 30
}end: {...}
- line: 35
- column: 36
}
}- name: "random"
}- computed: false
- optional: false
}- arguments: []
- optional: false
}- operator: "*"
right: MemberExpression {...}
- type: "MemberExpression"
- start: 1070
- end: 1090
loc: {...}
start: {...}
- line: 35
- column: 41
}end: {...}
- line: 35
- column: 61
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 1070
- end: 1083
loc: {...}
start: {...}
- line: 35
- column: 41
}end: {...}
- line: 35
- column: 54
}
}object: Identifier {...}
- type: "Identifier"
- start: 1070
- end: 1076
loc: {...}
start: {...}
- line: 35
- column: 41
}end: {...}
- line: 35
- column: 47
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 1077
- end: 1083
loc: {...}
start: {...}
- line: 35
- column: 48
}end: {...}
- line: 35
- column: 54
}
}- name: "people"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1084
- end: 1090
loc: {...}
start: {...}
- line: 35
- column: 55
}end: {...}
- line: 35
- column: 61
}
}- name: "length"
}- computed: false
- optional: false
}
}
]- optional: false
}
}
]- kind: "let"
} ExpressionStatement {...}
- type: "ExpressionStatement"
- start: 1095
- end: 1190
loc: {...}
start: {...}
- line: 36
- column: 2
}end: {...}
- line: 39
- column: 3
}
}expression: AssignmentExpression {...}
- type: "AssignmentExpression"
- start: 1095
- end: 1190
loc: {...}
start: {...}
- line: 36
- column: 2
}end: {...}
- line: 39
- column: 3
}
}- operator: "="
left: MemberExpression {...}
- type: "MemberExpression"
- start: 1095
- end: 1108
loc: {...}
start: {...}
- line: 36
- column: 2
}end: {...}
- line: 36
- column: 15
}
}object: Identifier {...}
- type: "Identifier"
- start: 1095
- end: 1101
loc: {...}
start: {...}
- line: 36
- column: 2
}end: {...}
- line: 36
- column: 8
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 1102
- end: 1108
loc: {...}
start: {...}
- line: 36
- column: 9
}end: {...}
- line: 36
- column: 15
}
}- name: "people"
}- computed: false
- optional: false
}right: ArrayExpression {...}
- type: "ArrayExpression"
- start: 1111
- end: 1190
loc: {...}
start: {...}
- line: 36
- column: 18
}end: {...}
- line: 39
- column: 3
}
}elements: [...] (2)
SpreadElement {...}
- type: "SpreadElement"
- start: 1116
- end: 1148
loc: {...}
start: {...}
- line: 37
- column: 3
}end: {...}
- line: 37
- column: 35
}
}argument: CallExpression {...}
- type: "CallExpression"
- start: 1119
- end: 1148
loc: {...}
start: {...}
- line: 37
- column: 6
}end: {...}
- line: 37
- column: 35
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1119
- end: 1138
loc: {...}
start: {...}
- line: 37
- column: 6
}end: {...}
- line: 37
- column: 25
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 1119
- end: 1132
loc: {...}
start: {...}
- line: 37
- column: 6
}end: {...}
- line: 37
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 1119
- end: 1125
loc: {...}
start: {...}
- line: 37
- column: 6
}end: {...}
- line: 37
- column: 12
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 1126
- end: 1132
loc: {...}
start: {...}
- line: 37
- column: 13
}end: {...}
- line: 37
- column: 19
}
}- name: "people"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1133
- end: 1138
loc: {...}
start: {...}
- line: 37
- column: 20
}end: {...}
- line: 37
- column: 25
}
}- name: "slice"
}- computed: false
- optional: false
}arguments: [...] (2)
Literal {...}
- type: "Literal"
- start: 1139
- end: 1140
loc: {...}
start: {...}
- line: 37
- column: 26
}end: {...}
- line: 37
- column: 27
}
}- value: 0
- raw: "0"
} Identifier {...}
- type: "Identifier"
- start: 1142
- end: 1147
loc: {...}
start: {...}
- line: 37
- column: 29
}end: {...}
- line: 37
- column: 34
}
}- name: "index"
}
]- optional: false
}
} SpreadElement {...}
- type: "SpreadElement"
- start: 1153
- end: 1186
loc: {...}
start: {...}
- line: 38
- column: 3
}end: {...}
- line: 38
- column: 36
}
}argument: CallExpression {...}
- type: "CallExpression"
- start: 1156
- end: 1186
loc: {...}
start: {...}
- line: 38
- column: 6
}end: {...}
- line: 38
- column: 36
}
}callee: MemberExpression {...}
- type: "MemberExpression"
- start: 1156
- end: 1175
loc: {...}
start: {...}
- line: 38
- column: 6
}end: {...}
- line: 38
- column: 25
}
}object: MemberExpression {...}
- type: "MemberExpression"
- start: 1156
- end: 1169
loc: {...}
start: {...}
- line: 38
- column: 6
}end: {...}
- line: 38
- column: 19
}
}object: Identifier {...}
- type: "Identifier"
- start: 1156
- end: 1162
loc: {...}
start: {...}
- line: 38
- column: 6
}end: {...}
- line: 38
- column: 12
}
}- name: "values"
}property: Identifier {...}
- type: "Identifier"
- start: 1163
- end: 1169
loc: {...}
start: {...}
- line: 38
- column: 13
}end: {...}
- line: 38
- column: 19
}
}- name: "people"
}- computed: false
- optional: false
}property: Identifier {...}
- type: "Identifier"
- start: 1170
- end: 1175
loc: {...}
start: {...}
- line: 38
- column: 20
}end: {...}
- line: 38
- column: 25
}
}- name: "slice"
}- computed: false
- optional: false
}arguments: [...] (1)
BinaryExpression {...}
- type: "BinaryExpression"
- start: 1176
- end: 1185
loc: {...}
start: {...}
- line: 38
- column: 26
}end: {...}
- line: 38
- column: 35
}
}left: Identifier {...}
- type: "Identifier"
- start: 1176
- end: 1181
loc: {...}
start: {...}
- line: 38
- column: 26
}end: {...}
- line: 38
- column: 31
}
}- name: "index"
}- operator: "+"
right: Literal {...}
- type: "Literal"
- start: 1184
- end: 1185
loc: {...}
start: {...}
- line: 38
- column: 34
}end: {...}
- line: 38
- column: 35
}
}- value: 1
- raw: "1"
}
}
]- optional: false
}
}
]
}
}
}
]
}
}
]- sourceType: "module"
}- attributes: []
}
}
The AST is not public API and may change at any point in time