Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/function-name-class-wrapped/output.json

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