Files

74 lines
2.8 KiB
JSON

{
"type": "File",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":53}},
"errors": [
"SyntaxError: Legacy octal literals are not allowed in strict mode. (4:4)"
],
"program": {
"type": "Program",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":53}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":53}},
"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":53,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":53}},
"body": [
{
"type": "ClassMethod",
"start":12,"end":27,"loc":{"start":{"line":2,"column":2,"index":12},"end":{"line":2,"column":17,"index":27}},
"static": true,
"key": {
"type": "Identifier",
"start":19,"end":22,"loc":{"start":{"line":2,"column":9,"index":19},"end":{"line":2,"column":12,"index":22},"identifierName":"foo"},
"name": "foo"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":25,"end":27,"loc":{"start":{"line":2,"column":15,"index":25},"end":{"line":2,"column":17,"index":27}},
"body": [],
"directives": []
}
},
{
"type": "StaticBlock",
"start":30,"end":51,"loc":{"start":{"line":3,"column":2,"index":30},"end":{"line":5,"column":3,"index":51}},
"body": [
{
"type": "ExpressionStatement",
"start":43,"end":47,"loc":{"start":{"line":4,"column":4,"index":43},"end":{"line":4,"column":8,"index":47}},
"expression": {
"type": "NumericLiteral",
"start":43,"end":46,"loc":{"start":{"line":4,"column":4,"index":43},"end":{"line":4,"column":7,"index":46}},
"extra": {
"rawValue": 34,
"raw": "042"
},
"value": 34
}
}
]
}
]
}
}
],
"directives": []
}
}