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
---
source: kcl-lib/src/parsing/parser.rs
expression: actual
---
{
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 22,
"id": {
"commentStart": 0,
"end": 3,
"moduleId": 0,
"name": "obj",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 6,
"end": 22,
"moduleId": 0,
"properties": [
{
"commentStart": 8,
"end": 13,
"key": {
"commentStart": 8,
"end": 9,
"moduleId": 0,
"name": "a",
"start": 8,
"type": "Identifier"
},
"moduleId": 0,
"start": 8,
"type": "ObjectProperty",
"value": {
"commentStart": 12,
"end": 13,
"moduleId": 0,
"raw": "1",
"start": 12,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
},
{
"commentStart": 15,
"end": 20,
"key": {
"commentStart": 15,
"end": 16,
"moduleId": 0,
"name": "b",
"start": 15,
"type": "Identifier"
},
"moduleId": 0,
"start": 15,
"type": "ObjectProperty",
"value": {
"commentStart": 19,
"end": 20,
"moduleId": 0,
"raw": "2",
"start": 19,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
}
}
],
"start": 6,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 22,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"commentStart": 27,
"declaration": {
"commentStart": 27,
"end": 44,
"id": {
"commentStart": 27,
"end": 33,
"moduleId": 0,
"name": "height",
"start": 27,
"type": "Identifier"
},
"init": {
"commentStart": 36,
"computed": true,
"end": 44,
"moduleId": 0,
"object": {
"abs_path": false,
"commentStart": 36,
"end": 39,
"moduleId": 0,
"name": {
"commentStart": 36,
"end": 39,
"moduleId": 0,
"name": "obj",
"start": 36,
"type": "Identifier"
},
"path": [],
"start": 36,
"type": "Name",
"type": "Name"
},
"property": {
"commentStart": 40,
"end": 43,
"moduleId": 0,
"raw": "\"a\"",
"start": 40,
"type": "Literal",
"type": "Literal",
"value": "a"
},
"start": 36,
"type": "MemberExpression",
"type": "MemberExpression"
},
"moduleId": 0,
"start": 27,
"type": "VariableDeclarator"
},
"end": 44,
"kind": "const",
"moduleId": 0,
"start": 27,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"commentStart": 0,
"end": 44,
"moduleId": 0,
"start": 0
}