Debian Codegraph @

packages/babel-parser/test/fixtures/es2020/optional-chaining/conditional-decimal/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":13,"index":24}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":24,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":13,"index":24}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
13 "expression": {
14 "type": "ConditionalExpression",
15 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
16 "test": {
17 "type": "BooleanLiteral",
18 "start":0,"end":4,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":4,"index":4}},
19 "value": true
20 },
21 "consequent": {
22 "type": "NumericLiteral",
23 "start":5,"end":7,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":7,"index":7}},
24 "extra": {
25 "rawValue": 0.3,
26 "raw": ".3"
27 },
28 "value": 0.3
29 },
30 "alternate": {
31 "type": "NumericLiteral",
32 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9}},
33 "extra": {
34 "rawValue": 0,
35 "raw": "0"
36 },
37 "value": 0
38 }
39 }
40 },
41 {
42 "type": "ExpressionStatement",
43 "start":11,"end":24,"loc":{"start":{"line":3,"column":0,"index":11},"end":{"line":3,"column":13,"index":24}},
44 "expression": {
45 "type": "ConditionalExpression",
46 "start":11,"end":24,"loc":{"start":{"line":3,"column":0,"index":11},"end":{"line":3,"column":13,"index":24}},
47 "test": {
48 "type": "BooleanLiteral",
49 "start":11,"end":15,"loc":{"start":{"line":3,"column":0,"index":11},"end":{"line":3,"column":4,"index":15}},
50 "value": true
51 },
52 "consequent": {
53 "type": "NumericLiteral",
54 "start":18,"end":20,"loc":{"start":{"line":3,"column":7,"index":18},"end":{"line":3,"column":9,"index":20}},
55 "extra": {
56 "rawValue": 0.3,
57 "raw": ".3"
58 },
59 "value": 0.3
60 },
61 "alternate": {
62 "type": "NumericLiteral",
63 "start":23,"end":24,"loc":{"start":{"line":3,"column":12,"index":23},"end":{"line":3,"column":13,"index":24}},
64 "extra": {
65 "rawValue": 0,
66 "raw": "0"
67 },
68 "value": 0
69 }
70 }
71 }
72 ],
73 "directives": []
74 }
75 }