Debian Codegraph @

packages/babel-parser/test/fixtures/core/categorized/02-regex/output.json

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