72 lines
2.7 KiB
JSON
72 lines
2.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":8,"end":38,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":38}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":10,"end":37,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":37}},
|
|
"static": true,
|
|
"kind": "method",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":18,"end":21,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":21},"identifierName":"gen"},
|
|
"name": "gen"
|
|
},
|
|
"computed": false,
|
|
"id": null,
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":22,"end":23,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":23},"identifierName":"v"},
|
|
"name": "v"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":25,"end":37,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":37}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":27,"end":35,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":35}},
|
|
"expression": {
|
|
"type": "YieldExpression",
|
|
"start":27,"end":34,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":34}},
|
|
"delegate": false,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":33,"end":34,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":34},"identifierName":"v"},
|
|
"name": "v"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |