85 lines
3.5 KiB
JSON
85 lines
3.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},
|
|
"errors": [
|
|
"SyntaxError: super is only allowed in object methods and classes (3:4)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":5,"column":1}},
|
|
"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":54,"loc":{"start":{"line":1,"column":8},"end":{"line":5,"column":1}},
|
|
"body": [
|
|
{
|
|
"type": "ClassProperty",
|
|
"start":12,"end":52,"loc":{"start":{"line":2,"column":2},"end":{"line":4,"column":3}},
|
|
"static": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":12,"end":15,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":5},"identifierName":"foo"},
|
|
"name": "foo"
|
|
},
|
|
"computed": false,
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"start":18,"end":52,"loc":{"start":{"line":2,"column":8},"end":{"line":4,"column":3}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":27,"end":29,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":19},"identifierName":"fn"},
|
|
"name": "fn"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start":32,"end":52,"loc":{"start":{"line":2,"column":22},"end":{"line":4,"column":3}},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":38,"end":48,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":14}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":38,"end":47,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":13}},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start":38,"end":45,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":11}},
|
|
"object": {
|
|
"type": "Super",
|
|
"start":38,"end":43,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":9}}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start":44,"end":45,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":11},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |