Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-generator/generator-method-with-computed-name/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":51}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":51}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":51,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":2,"index":51}},
13 "expression": {
14 "type": "FunctionExpression",
15 "start":1,"end":50,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":3,"column":1,"index":50}},
16 "id": null,
17 "generator": true,
18 "async": false,
19 "params": [],
20 "body": {
21 "type": "BlockStatement",
22 "start":13,"end":50,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":3,"column":1,"index":50}},
23 "body": [
24 {
25 "type": "ReturnStatement",
26 "start":19,"end":48,"loc":{"start":{"line":2,"column":4,"index":19},"end":{"line":2,"column":33,"index":48}},
27 "argument": {
28 "type": "ObjectExpression",
29 "start":26,"end":48,"loc":{"start":{"line":2,"column":11,"index":26},"end":{"line":2,"column":33,"index":48}},
30 "properties": [
31 {
32 "type": "ObjectMethod",
33 "start":28,"end":46,"loc":{"start":{"line":2,"column":13,"index":28},"end":{"line":2,"column":31,"index":46}},
34 "method": true,
35 "computed": true,
36 "key": {
37 "type": "YieldExpression",
38 "start":30,"end":40,"loc":{"start":{"line":2,"column":15,"index":30},"end":{"line":2,"column":25,"index":40}},
39 "delegate": false,
40 "argument": {
41 "type": "Identifier",
42 "start":36,"end":40,"loc":{"start":{"line":2,"column":21,"index":36},"end":{"line":2,"column":25,"index":40},"identifierName":"iter"},
43 "name": "iter"
44 }
45 },
46 "kind": "method",
47 "id": null,
48 "generator": true,
49 "async": false,
50 "params": [],
51 "body": {
52 "type": "BlockStatement",
53 "start":44,"end":46,"loc":{"start":{"line":2,"column":29,"index":44},"end":{"line":2,"column":31,"index":46}},
54 "body": [],
55 "directives": []
56 }
57 }
58 ]
59 }
60 }
61 ],
62 "directives": []
63 },
64 "extra": {
65 "parenthesized": true,
66 "parenStart": 0
67 }
68 }
69 }
70 ],
71 "directives": []
72 }
73 }