Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/arrow-functions/in-logic-expression/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":19,"index":39}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":19,"index":39}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":19,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":19,"index":19}},
13 "expression": {
14 "type": "LogicalExpression",
15 "start":0,"end":18,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":18,"index":18}},
16 "left": {
17 "type": "ArrowFunctionExpression",
18 "start":1,"end":9,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":9,"index":9}},
19 "id": null,
20 "generator": false,
21 "async": false,
22 "params": [],
23 "body": {
24 "type": "BlockStatement",
25 "start":7,"end":9,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":9,"index":9}},
26 "body": [],
27 "directives": []
28 },
29 "extra": {
30 "parenthesized": true,
31 "parenStart": 0
32 }
33 },
34 "operator": "||",
35 "right": {
36 "type": "BooleanLiteral",
37 "start":14,"end":18,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":18,"index":18}},
38 "value": true
39 }
40 }
41 },
42 {
43 "type": "ExpressionStatement",
44 "start":20,"end":39,"loc":{"start":{"line":2,"column":0,"index":20},"end":{"line":2,"column":19,"index":39}},
45 "expression": {
46 "type": "ConditionalExpression",
47 "start":20,"end":38,"loc":{"start":{"line":2,"column":0,"index":20},"end":{"line":2,"column":18,"index":38}},
48 "test": {
49 "type": "ArrowFunctionExpression",
50 "start":21,"end":29,"loc":{"start":{"line":2,"column":1,"index":21},"end":{"line":2,"column":9,"index":29}},
51 "id": null,
52 "generator": false,
53 "async": false,
54 "params": [],
55 "body": {
56 "type": "BlockStatement",
57 "start":27,"end":29,"loc":{"start":{"line":2,"column":7,"index":27},"end":{"line":2,"column":9,"index":29}},
58 "body": [],
59 "directives": []
60 },
61 "extra": {
62 "parenthesized": true,
63 "parenStart": 20
64 }
65 },
66 "consequent": {
67 "type": "Identifier",
68 "start":33,"end":34,"loc":{"start":{"line":2,"column":13,"index":33},"end":{"line":2,"column":14,"index":34},"identifierName":"a"},
69 "name": "a"
70 },
71 "alternate": {
72 "type": "Identifier",
73 "start":37,"end":38,"loc":{"start":{"line":2,"column":17,"index":37},"end":{"line":2,"column":18,"index":38},"identifierName":"b"},
74 "name": "b"
75 }
76 }
77 }
78 ],
79 "directives": []
80 }
81 }