Debian Codegraph @

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

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