Debian Codegraph @

tests/fixtures/ecma-version/11/nullish-coalescing/qq-with-logical-or-1.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 1,
10 "column": 13
11 }
12 },
13 "range": [
14 0,
15 13
16 ],
17 "body": [
18 {
19 "type": "ExpressionStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 13
28 }
29 },
30 "range": [
31 0,
32 13
33 ],
34 "expression": {
35 "type": "LogicalExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 0
40 },
41 "end": {
42 "line": 1,
43 "column": 13
44 }
45 },
46 "range": [
47 0,
48 13
49 ],
50 "left": {
51 "type": "LogicalExpression",
52 "loc": {
53 "start": {
54 "line": 1,
55 "column": 1
56 },
57 "end": {
58 "line": 1,
59 "column": 7
60 }
61 },
62 "range": [
63 1,
64 7
65 ],
66 "left": {
67 "type": "Identifier",
68 "loc": {
69 "start": {
70 "line": 1,
71 "column": 1
72 },
73 "end": {
74 "line": 1,
75 "column": 2
76 }
77 },
78 "range": [
79 1,
80 2
81 ],
82 "name": "a"
83 },
84 "operator": "||",
85 "right": {
86 "type": "Identifier",
87 "loc": {
88 "start": {
89 "line": 1,
90 "column": 6
91 },
92 "end": {
93 "line": 1,
94 "column": 7
95 }
96 },
97 "range": [
98 6,
99 7
100 ],
101 "name": "b"
102 }
103 },
104 "operator": "??",
105 "right": {
106 "type": "Identifier",
107 "loc": {
108 "start": {
109 "line": 1,
110 "column": 12
111 },
112 "end": {
113 "line": 1,
114 "column": 13
115 }
116 },
117 "range": [
118 12,
119 13
120 ],
121 "name": "c"
122 }
123 }
124 }
125 ],
126 "sourceType": "script",
127 "tokens": [
128 {
129 "type": "Punctuator",
130 "value": "(",
131 "loc": {
132 "start": {
133 "line": 1,
134 "column": 0
135 },
136 "end": {
137 "line": 1,
138 "column": 1
139 }
140 },
141 "range": [
142 0,
143 1
144 ]
145 },
146 {
147 "type": "Identifier",
148 "value": "a",
149 "loc": {
150 "start": {
151 "line": 1,
152 "column": 1
153 },
154 "end": {
155 "line": 1,
156 "column": 2
157 }
158 },
159 "range": [
160 1,
161 2
162 ]
163 },
164 {
165 "type": "Punctuator",
166 "value": "||",
167 "loc": {
168 "start": {
169 "line": 1,
170 "column": 3
171 },
172 "end": {
173 "line": 1,
174 "column": 5
175 }
176 },
177 "range": [
178 3,
179 5
180 ]
181 },
182 {
183 "type": "Identifier",
184 "value": "b",
185 "loc": {
186 "start": {
187 "line": 1,
188 "column": 6
189 },
190 "end": {
191 "line": 1,
192 "column": 7
193 }
194 },
195 "range": [
196 6,
197 7
198 ]
199 },
200 {
201 "type": "Punctuator",
202 "value": ")",
203 "loc": {
204 "start": {
205 "line": 1,
206 "column": 7
207 },
208 "end": {
209 "line": 1,
210 "column": 8
211 }
212 },
213 "range": [
214 7,
215 8
216 ]
217 },
218 {
219 "type": "Punctuator",
220 "value": "??",
221 "loc": {
222 "start": {
223 "line": 1,
224 "column": 9
225 },
226 "end": {
227 "line": 1,
228 "column": 11
229 }
230 },
231 "range": [
232 9,
233 11
234 ]
235 },
236 {
237 "type": "Identifier",
238 "value": "c",
239 "loc": {
240 "start": {
241 "line": 1,
242 "column": 12
243 },
244 "end": {
245 "line": 1,
246 "column": 13
247 }
248 },
249 "range": [
250 12,
251 13
252 ]
253 }
254 ]
255 };