Debian Codegraph @

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

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