Debian Codegraph @

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

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