Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":32}},
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":32,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":32}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":20,"end":30,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":12,"index":30}},
28 "expression": {
29 "type": "UnaryExpression",
30 "start":21,"end":28,"loc":{"start":{"line":2,"column":3,"index":21},"end":{"line":2,"column":10,"index":28}},
31 "operator": "throw",
32 "prefix": true,
33 "argument": {
34 "type": "NumericLiteral",
35 "start":27,"end":28,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":10,"index":28}},
36 "extra": {
37 "rawValue": 1,
38 "raw": "1"
39 },
40 "value": 1
41 },
42 "extra": {
43 "parenthesized": true,
44 "parenStart": 20
45 }
46 }
47 }
48 ],
49 "directives": []
50 }
51 }
52 ],
53 "directives": []
54 }
55 }