Debian Codegraph @

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

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