Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/yield/basic-without-argument/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":39,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":39,"index":39}},
13 "id": {
14 "type": "Identifier",
15 "start":10,"end":13,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":13,"index":13},"identifierName":"foo"},
16 "name": "foo"
17 },
18 "generator": true,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":16,"end":39,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":39,"index":39}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":18,"end":37,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":37,"index":37}},
28 "expression": {
29 "type": "CallExpression",
30 "start":18,"end":36,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":36,"index":36}},
31 "callee": {
32 "type": "MemberExpression",
33 "start":18,"end":29,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":29,"index":29}},
34 "object": {
35 "type": "Identifier",
36 "start":18,"end":25,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":25,"index":25},"identifierName":"console"},
37 "name": "console"
38 },
39 "computed": false,
40 "property": {
41 "type": "Identifier",
42 "start":26,"end":29,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":29,"index":29},"identifierName":"log"},
43 "name": "log"
44 }
45 },
46 "arguments": [
47 {
48 "type": "YieldExpression",
49 "start":30,"end":35,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":35,"index":35}},
50 "delegate": false,
51 "argument": null
52 }
53 ]
54 }
55 }
56 ],
57 "directives": []
58 }
59 }
60 ],
61 "directives": []
62 }
63 }