Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/generators/yield-regex/output.json

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