Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/nullish-coalescing-operator/or-nullish/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
13 "expression": {
14 "type": "LogicalExpression",
15 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
16 "left": {
17 "type": "LogicalExpression",
18 "start":1,"end":7,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":7,"index":7}},
19 "left": {
20 "type": "Identifier",
21 "start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2},"identifierName":"a"},
22 "name": "a"
23 },
24 "operator": "||",
25 "right": {
26 "type": "Identifier",
27 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"b"},
28 "name": "b"
29 },
30 "extra": {
31 "parenthesized": true,
32 "parenStart": 0
33 }
34 },
35 "operator": "??",
36 "right": {
37 "type": "Identifier",
38 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"c"},
39 "name": "c"
40 }
41 }
42 }
43 ],
44 "directives": []
45 }
46 }