Files

104 lines
4.1 KiB
JSON

{
"type": "File",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":53}},
"program": {
"type": "Program",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":9,"column":1,"index":53}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":21,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":21}},
"id": {
"type": "Identifier",
"start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9},"identifierName":"Foo"},
"name": "Foo"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":10,"end":21,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":4,"column":1,"index":21}},
"body": [
{
"type": "ClassProperty",
"start":14,"end":15,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":3,"index":15}},
"static": false,
"key": {
"type": "Identifier",
"start":14,"end":15,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":3,"index":15},"identifierName":"x"},
"name": "x"
},
"computed": false,
"value": null
},
{
"type": "ClassProperty",
"start":18,"end":19,"loc":{"start":{"line":3,"column":2,"index":18},"end":{"line":3,"column":3,"index":19}},
"static": false,
"key": {
"type": "Identifier",
"start":18,"end":19,"loc":{"start":{"line":3,"column":2,"index":18},"end":{"line":3,"column":3,"index":19},"identifierName":"y"},
"name": "y"
},
"computed": false,
"value": null
}
]
}
},
{
"type": "ClassDeclaration",
"start":23,"end":53,"loc":{"start":{"line":6,"column":0,"index":23},"end":{"line":9,"column":1,"index":53}},
"id": {
"type": "Identifier",
"start":29,"end":33,"loc":{"start":{"line":6,"column":6,"index":29},"end":{"line":6,"column":10,"index":33},"identifierName":"Foo2"},
"name": "Foo2"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":34,"end":53,"loc":{"start":{"line":6,"column":11,"index":34},"end":{"line":9,"column":1,"index":53}},
"body": [
{
"type": "ClassProperty",
"start":38,"end":39,"loc":{"start":{"line":7,"column":2,"index":38},"end":{"line":7,"column":3,"index":39}},
"static": false,
"key": {
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":7,"column":2,"index":38},"end":{"line":7,"column":3,"index":39},"identifierName":"p"},
"name": "p"
},
"computed": false,
"value": null
},
{
"type": "ClassMethod",
"start":42,"end":51,"loc":{"start":{"line":8,"column":2,"index":42},"end":{"line":8,"column":11,"index":51}},
"static": false,
"computed": true,
"key": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":8,"column":3,"index":43},"end":{"line":8,"column":4,"index":44},"identifierName":"m"},
"name": "m"
},
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":49,"end":51,"loc":{"start":{"line":8,"column":9,"index":49},"end":{"line":8,"column":11,"index":51}},
"body": [],
"directives": []
}
}
]
}
}
],
"directives": []
}
}