Debian Codegraph @

packages/babel-parser/test/fixtures/experimental/throw-expression/logical/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":38,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":38}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":13,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":13,"index":13},"identifierName":"test"},
16 "name": "test"
17 },
18 "generator": false,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":16,"end":38,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":38}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":20,"end":36,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":18,"index":36}},
28 "expression": {
29 "type": "LogicalExpression",
30 "start":20,"end":35,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":17,"index":35}},
31 "left": {
32 "type": "BooleanLiteral",
33 "start":20,"end":24,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":6,"index":24}},
34 "value": true
35 },
36 "operator": "&&",
37 "right": {
38 "type": "UnaryExpression",
39 "start":28,"end":35,"loc":{"start":{"line":2,"column":10,"index":28},"end":{"line":2,"column":17,"index":35}},
40 "operator": "throw",
41 "prefix": true,
42 "argument": {
43 "type": "NumericLiteral",
44 "start":34,"end":35,"loc":{"start":{"line":2,"column":16,"index":34},"end":{"line":2,"column":17,"index":35}},
45 "extra": {
46 "rawValue": 1,
47 "raw": "1"
48 },
49 "value": 1
50 }
51 }
52 }
53 }
54 ],
55 "directives": []
56 }
57 }
58 ],
59 "directives": []
60 }
61 }