Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/context-regex-after-statement/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":6,"index":29}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":29,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":6,"index":29}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}},
13 "id": {
14 "type": "Identifier",
15 "start":15,"end":17,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":17,"index":17},"identifierName":"fn"},
16 "name": "fn"
17 },
18 "generator": false,
19 "async": true,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":20,"end":22,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":22,"index":22}},
24 "body": [],
25 "directives": []
26 }
27 },
28 {
29 "type": "ExpressionStatement",
30 "start":23,"end":29,"loc":{"start":{"line":2,"column":0,"index":23},"end":{"line":2,"column":6,"index":29}},
31 "expression": {
32 "type": "RegExpLiteral",
33 "start":23,"end":29,"loc":{"start":{"line":2,"column":0,"index":23},"end":{"line":2,"column":6,"index":29}},
34 "extra": {
35 "raw": "/foo/g"
36 },
37 "pattern": "foo",
38 "flags": "g"
39 }
40 }
41 ],
42 "directives": []
43 }
44 }