102 lines
4.1 KiB
JSON
102 lines
4.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":90,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":1}},
|
|
"errors": [
|
|
"SyntaxError: Unexpected reserved word 'yield'. (5:6)",
|
|
"SyntaxError: Missing semicolon. (5:11)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":90,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start":0,"end":90,"loc":{"start":{"line":1,"column":0},"end":{"line":8,"column":1}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":10,"end":13,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":13},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"generator": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":16,"end":90,"loc":{"start":{"line":1,"column":16},"end":{"line":8,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":20,"end":88,"loc":{"start":{"line":2,"column":2},"end":{"line":7,"column":3}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":26,"end":27,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":9},"identifierName":"C"},
|
|
"name": "C"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start":28,"end":88,"loc":{"start":{"line":2,"column":10},"end":{"line":7,"column":3}},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start":34,"end":49,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":19}},
|
|
"static": true,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":41,"end":44,"loc":{"start":{"line":3,"column":11},"end":{"line":3,"column":14},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"computed": false,
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":47,"end":49,"loc":{"start":{"line":3,"column":17},"end":{"line":3,"column":19}},
|
|
"body": [],
|
|
"directives": []
|
|
}
|
|
},
|
|
{
|
|
"type": "StaticBlock",
|
|
"start":54,"end":84,"loc":{"start":{"line":4,"column":4},"end":{"line":6,"column":5}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":69,"end":74,"loc":{"start":{"line":5,"column":6},"end":{"line":5,"column":11}},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start":69,"end":74,"loc":{"start":{"line":5,"column":6},"end":{"line":5,"column":11},"identifierName":"yield"},
|
|
"name": "yield"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":75,"end":78,"loc":{"start":{"line":5,"column":12},"end":{"line":5,"column":15}},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"start":75,"end":77,"loc":{"start":{"line":5,"column":12},"end":{"line":5,"column":14}},
|
|
"extra": {
|
|
"rawValue": 42,
|
|
"raw": "42"
|
|
},
|
|
"value": 42
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |