Files

67 lines
2.9 KiB
JSON

{
"type": "File",
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":52}},
"errors": [
"SyntaxError: 'arguments' is only allowed in functions and class methods. (3:15)"
],
"program": {
"type": "Program",
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":52}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":52}},
"id": {
"type": "Identifier",
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"C"},
"name": "C"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":8,"end":52,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":5,"column":1,"index":52}},
"body": [
{
"type": "StaticBlock",
"start":12,"end":50,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":4,"column":3,"index":50}},
"body": [
{
"type": "ExpressionStatement",
"start":25,"end":46,"loc":{"start":{"line":3,"column":4,"index":25},"end":{"line":3,"column":25,"index":46}},
"expression": {
"type": "AssignmentExpression",
"start":25,"end":45,"loc":{"start":{"line":3,"column":4,"index":25},"end":{"line":3,"column":24,"index":45}},
"operator": "=",
"left": {
"type": "MemberExpression",
"start":25,"end":33,"loc":{"start":{"line":3,"column":4,"index":25},"end":{"line":3,"column":12,"index":33}},
"object": {
"type": "ThisExpression",
"start":25,"end":29,"loc":{"start":{"line":3,"column":4,"index":25},"end":{"line":3,"column":8,"index":29}}
},
"computed": false,
"property": {
"type": "Identifier",
"start":30,"end":33,"loc":{"start":{"line":3,"column":9,"index":30},"end":{"line":3,"column":12,"index":33},"identifierName":"foo"},
"name": "foo"
}
},
"right": {
"type": "Identifier",
"start":36,"end":45,"loc":{"start":{"line":3,"column":15,"index":36},"end":{"line":3,"column":24,"index":45},"identifierName":"arguments"},
"name": "arguments"
}
}
}
]
}
]
}
}
],
"directives": []
}
}