Debian Codegraph @

packages/babel-parser/test/fixtures/core/regression/2591/output.json

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