Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":93,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":93}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":93,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":93}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":93,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":8,"column":1,"index":93}},
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":"f"},
16 "name": "f"
17 },
18 "generator": true,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":14,"end":93,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":8,"column":1,"index":93}},
24 "body": [
25 {
26 "type": "ExpressionStatement",
27 "start":18,"end":26,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":10,"index":26}},
28 "expression": {
29 "type": "YieldExpression",
30 "start":19,"end":24,"loc":{"start":{"line":2,"column":3,"index":19},"end":{"line":2,"column":8,"index":24}},
31 "delegate": false,
32 "argument": null,
33 "extra": {
34 "parenthesized": true,
35 "parenStart": 18
36 }
37 }
38 },
39 {
40 "type": "ExpressionStatement",
41 "start":29,"end":37,"loc":{"start":{"line":3,"column":2,"index":29},"end":{"line":3,"column":10,"index":37}},
42 "expression": {
43 "type": "ArrayExpression",
44 "start":29,"end":36,"loc":{"start":{"line":3,"column":2,"index":29},"end":{"line":3,"column":9,"index":36}},
45 "elements": [
46 {
47 "type": "YieldExpression",
48 "start":30,"end":35,"loc":{"start":{"line":3,"column":3,"index":30},"end":{"line":3,"column":8,"index":35}},
49 "delegate": false,
50 "argument": null
51 }
52 ]
53 }
54 },
55 {
56 "type": "BlockStatement",
57 "start":40,"end":49,"loc":{"start":{"line":4,"column":2,"index":40},"end":{"line":4,"column":11,"index":49}},
58 "body": [
59 {
60 "type": "ExpressionStatement",
61 "start":42,"end":47,"loc":{"start":{"line":4,"column":4,"index":42},"end":{"line":4,"column":9,"index":47}},
62 "expression": {
63 "type": "YieldExpression",
64 "start":42,"end":47,"loc":{"start":{"line":4,"column":4,"index":42},"end":{"line":4,"column":9,"index":47}},
65 "delegate": false,
66 "argument": null
67 }
68 }
69 ],
70 "directives": []
71 },
72 {
73 "type": "EmptyStatement",
74 "start":49,"end":50,"loc":{"start":{"line":4,"column":11,"index":49},"end":{"line":4,"column":12,"index":50}}
75 },
76 {
77 "type": "ExpressionStatement",
78 "start":53,"end":59,"loc":{"start":{"line":5,"column":2,"index":53},"end":{"line":5,"column":8,"index":59}},
79 "expression": {
80 "type": "YieldExpression",
81 "start":53,"end":58,"loc":{"start":{"line":5,"column":2,"index":53},"end":{"line":5,"column":7,"index":58}},
82 "delegate": false,
83 "argument": null
84 }
85 },
86 {
87 "type": "ExpressionStatement",
88 "start":62,"end":79,"loc":{"start":{"line":6,"column":2,"index":62},"end":{"line":6,"column":19,"index":79}},
89 "expression": {
90 "type": "ConditionalExpression",
91 "start":62,"end":78,"loc":{"start":{"line":6,"column":2,"index":62},"end":{"line":6,"column":18,"index":78}},
92 "test": {
93 "type": "BooleanLiteral",
94 "start":62,"end":66,"loc":{"start":{"line":6,"column":2,"index":62},"end":{"line":6,"column":6,"index":66}},
95 "value": true
96 },
97 "consequent": {
98 "type": "YieldExpression",
99 "start":69,"end":74,"loc":{"start":{"line":6,"column":9,"index":69},"end":{"line":6,"column":14,"index":74}},
100 "delegate": false,
101 "argument": null
102 },
103 "alternate": {
104 "type": "NumericLiteral",
105 "start":77,"end":78,"loc":{"start":{"line":6,"column":17,"index":77},"end":{"line":6,"column":18,"index":78}},
106 "extra": {
107 "rawValue": 1,
108 "raw": "1"
109 },
110 "value": 1
111 }
112 }
113 },
114 {
115 "type": "ExpressionStatement",
116 "start":82,"end":91,"loc":{"start":{"line":7,"column":2,"index":82},"end":{"line":7,"column":11,"index":91}},
117 "expression": {
118 "type": "SequenceExpression",
119 "start":82,"end":90,"loc":{"start":{"line":7,"column":2,"index":82},"end":{"line":7,"column":10,"index":90}},
120 "expressions": [
121 {
122 "type": "YieldExpression",
123 "start":82,"end":87,"loc":{"start":{"line":7,"column":2,"index":82},"end":{"line":7,"column":7,"index":87}},
124 "delegate": false,
125 "argument": null
126 },
127 {
128 "type": "NumericLiteral",
129 "start":89,"end":90,"loc":{"start":{"line":7,"column":9,"index":89},"end":{"line":7,"column":10,"index":90}},
130 "extra": {
131 "rawValue": 1,
132 "raw": "1"
133 },
134 "value": 1
135 }
136 ]
137 }
138 }
139 ],
140 "directives": []
141 }
142 }
143 ],
144 "directives": []
145 }
146 }