| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":155,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":155}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":155,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":155}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "VariableDeclaration", |
| 12 |
"start":0,"end":22,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":22,"index":22}}, |
| 13 |
"declarations": [ |
| 14 |
{ |
| 15 |
"type": "VariableDeclarator", |
| 16 |
"start":4,"end":12,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":12,"index":12}}, |
| 17 |
"id": { |
| 18 |
"type": "Identifier", |
| 19 |
"start":4,"end":12,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":12,"index":12},"identifierName":"yieldSet"}, |
| 20 |
"name": "yieldSet" |
| 21 |
}, |
| 22 |
"init": null |
| 23 |
}, |
| 24 |
{ |
| 25 |
"type": "VariableDeclarator", |
| 26 |
"start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15}}, |
| 27 |
"id": { |
| 28 |
"type": "Identifier", |
| 29 |
"start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"C"}, |
| 30 |
"name": "C" |
| 31 |
}, |
| 32 |
"init": null |
| 33 |
}, |
| 34 |
{ |
| 35 |
"type": "VariableDeclarator", |
| 36 |
"start":17,"end":21,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":21,"index":21}}, |
| 37 |
"id": { |
| 38 |
"type": "Identifier", |
| 39 |
"start":17,"end":21,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":21,"index":21},"identifierName":"iter"}, |
| 40 |
"name": "iter" |
| 41 |
}, |
| 42 |
"init": null |
| 43 |
} |
| 44 |
], |
| 45 |
"kind": "var" |
| 46 |
}, |
| 47 |
{ |
| 48 |
"type": "FunctionDeclaration", |
| 49 |
"start":23,"end":155,"loc":{"start":{"line":2,"column":0,"index":23},"end":{"line":9,"column":1,"index":155}}, |
| 50 |
"id": { |
| 51 |
"type": "Identifier", |
| 52 |
"start":33,"end":34,"loc":{"start":{"line":2,"column":10,"index":33},"end":{"line":2,"column":11,"index":34},"identifierName":"g"}, |
| 53 |
"name": "g" |
| 54 |
}, |
| 55 |
"generator": true, |
| 56 |
"async": false, |
| 57 |
"params": [], |
| 58 |
"body": { |
| 59 |
"type": "BlockStatement", |
| 60 |
"start":37,"end":155,"loc":{"start":{"line":2,"column":14,"index":37},"end":{"line":9,"column":1,"index":155}}, |
| 61 |
"body": [ |
| 62 |
{ |
| 63 |
"type": "ClassDeclaration", |
| 64 |
"start":41,"end":142,"loc":{"start":{"line":3,"column":2,"index":41},"end":{"line":6,"column":3,"index":142}}, |
| 65 |
"id": { |
| 66 |
"type": "Identifier", |
| 67 |
"start":47,"end":49,"loc":{"start":{"line":3,"column":8,"index":47},"end":{"line":3,"column":10,"index":49},"identifierName":"C_"}, |
| 68 |
"name": "C_" |
| 69 |
}, |
| 70 |
"superClass": null, |
| 71 |
"body": { |
| 72 |
"type": "ClassBody", |
| 73 |
"start":50,"end":142,"loc":{"start":{"line":3,"column":11,"index":50},"end":{"line":6,"column":3,"index":142}}, |
| 74 |
"body": [ |
| 75 |
{ |
| 76 |
"type": "ClassMethod", |
| 77 |
"start":56,"end":93,"loc":{"start":{"line":4,"column":4,"index":56},"end":{"line":4,"column":41,"index":93}}, |
| 78 |
"static": false, |
| 79 |
"key": { |
| 80 |
"type": "YieldExpression", |
| 81 |
"start":61,"end":66,"loc":{"start":{"line":4,"column":9,"index":61},"end":{"line":4,"column":14,"index":66}}, |
| 82 |
"delegate": false, |
| 83 |
"argument": null |
| 84 |
}, |
| 85 |
"computed": true, |
| 86 |
"kind": "get", |
| 87 |
"id": null, |
| 88 |
"generator": false, |
| 89 |
"async": false, |
| 90 |
"params": [], |
| 91 |
"body": { |
| 92 |
"type": "BlockStatement", |
| 93 |
"start":70,"end":93,"loc":{"start":{"line":4,"column":18,"index":70},"end":{"line":4,"column":41,"index":93}}, |
| 94 |
"body": [ |
| 95 |
{ |
| 96 |
"type": "ReturnStatement", |
| 97 |
"start":72,"end":91,"loc":{"start":{"line":4,"column":20,"index":72},"end":{"line":4,"column":39,"index":91}}, |
| 98 |
"argument": { |
| 99 |
"type": "StringLiteral", |
| 100 |
"start":79,"end":90,"loc":{"start":{"line":4,"column":27,"index":79},"end":{"line":4,"column":38,"index":90}}, |
| 101 |
"extra": { |
| 102 |
"rawValue": "get yield", |
| 103 |
"raw": "'get yield'" |
| 104 |
}, |
| 105 |
"value": "get yield" |
| 106 |
} |
| 107 |
} |
| 108 |
], |
| 109 |
"directives": [] |
| 110 |
} |
| 111 |
}, |
| 112 |
{ |
| 113 |
"type": "ClassMethod", |
| 114 |
"start":98,"end":138,"loc":{"start":{"line":5,"column":4,"index":98},"end":{"line":5,"column":44,"index":138}}, |
| 115 |
"static": false, |
| 116 |
"key": { |
| 117 |
"type": "YieldExpression", |
| 118 |
"start":103,"end":108,"loc":{"start":{"line":5,"column":9,"index":103},"end":{"line":5,"column":14,"index":108}}, |
| 119 |
"delegate": false, |
| 120 |
"argument": null |
| 121 |
}, |
| 122 |
"computed": true, |
| 123 |
"kind": "set", |
| 124 |
"id": null, |
| 125 |
"generator": false, |
| 126 |
"async": false, |
| 127 |
"params": [ |
| 128 |
{ |
| 129 |
"type": "Identifier", |
| 130 |
"start":110,"end":115,"loc":{"start":{"line":5,"column":16,"index":110},"end":{"line":5,"column":21,"index":115},"identifierName":"param"}, |
| 131 |
"name": "param" |
| 132 |
} |
| 133 |
], |
| 134 |
"body": { |
| 135 |
"type": "BlockStatement", |
| 136 |
"start":117,"end":138,"loc":{"start":{"line":5,"column":23,"index":117},"end":{"line":5,"column":44,"index":138}}, |
| 137 |
"body": [ |
| 138 |
{ |
| 139 |
"type": "ExpressionStatement", |
| 140 |
"start":119,"end":136,"loc":{"start":{"line":5,"column":25,"index":119},"end":{"line":5,"column":42,"index":136}}, |
| 141 |
"expression": { |
| 142 |
"type": "AssignmentExpression", |
| 143 |
"start":119,"end":135,"loc":{"start":{"line":5,"column":25,"index":119},"end":{"line":5,"column":41,"index":135}}, |
| 144 |
"operator": "=", |
| 145 |
"left": { |
| 146 |
"type": "Identifier", |
| 147 |
"start":119,"end":127,"loc":{"start":{"line":5,"column":25,"index":119},"end":{"line":5,"column":33,"index":127},"identifierName":"yieldSet"}, |
| 148 |
"name": "yieldSet" |
| 149 |
}, |
| 150 |
"right": { |
| 151 |
"type": "Identifier", |
| 152 |
"start":130,"end":135,"loc":{"start":{"line":5,"column":36,"index":130},"end":{"line":5,"column":41,"index":135},"identifierName":"param"}, |
| 153 |
"name": "param" |
| 154 |
} |
| 155 |
} |
| 156 |
} |
| 157 |
], |
| 158 |
"directives": [] |
| 159 |
} |
| 160 |
} |
| 161 |
] |
| 162 |
} |
| 163 |
}, |
| 164 |
{ |
| 165 |
"type": "ExpressionStatement", |
| 166 |
"start":146,"end":153,"loc":{"start":{"line":8,"column":2,"index":146},"end":{"line":8,"column":9,"index":153}}, |
| 167 |
"expression": { |
| 168 |
"type": "AssignmentExpression", |
| 169 |
"start":146,"end":152,"loc":{"start":{"line":8,"column":2,"index":146},"end":{"line":8,"column":8,"index":152}}, |
| 170 |
"operator": "=", |
| 171 |
"left": { |
| 172 |
"type": "Identifier", |
| 173 |
"start":146,"end":147,"loc":{"start":{"line":8,"column":2,"index":146},"end":{"line":8,"column":3,"index":147},"identifierName":"C"}, |
| 174 |
"name": "C" |
| 175 |
}, |
| 176 |
"right": { |
| 177 |
"type": "Identifier", |
| 178 |
"start":150,"end":152,"loc":{"start":{"line":8,"column":6,"index":150},"end":{"line":8,"column":8,"index":152},"identifierName":"C_"}, |
| 179 |
"name": "C_" |
| 180 |
} |
| 181 |
} |
| 182 |
} |
| 183 |
], |
| 184 |
"directives": [] |
| 185 |
} |
| 186 |
} |
| 187 |
], |
| 188 |
"directives": [] |
| 189 |
} |
| 190 |
} |