Files

230 lines
10 KiB
JSON

{
"type": "File",
"start":0,"end":135,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":135}},
"program": {
"type": "Program",
"start":0,"end":135,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":135}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":135,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":135}},
"id": {
"type": "Identifier",
"start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"A"},
"name": "A"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":8,"end":135,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":6,"column":1,"index":135}},
"body": [
{
"type": "ClassMethod",
"start":14,"end":57,"loc":{"start":{"line":2,"column":4,"index":14},"end":{"line":2,"column":47,"index":57}},
"static": false,
"key": {
"type": "Identifier",
"start":14,"end":15,"loc":{"start":{"line":2,"column":4,"index":14},"end":{"line":2,"column":5,"index":15},"identifierName":"m"},
"name": "m"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":16,"end":29,"loc":{"start":{"line":2,"column":6,"index":16},"end":{"line":2,"column":19,"index":29},"identifierName":"this"},
"name": "this",
"typeAnnotation": {
"type": "TypeAnnotation",
"start":21,"end":29,"loc":{"start":{"line":2,"column":11,"index":21},"end":{"line":2,"column":19,"index":29}},
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start":23,"end":29,"loc":{"start":{"line":2,"column":13,"index":23},"end":{"line":2,"column":19,"index":29}}
}
}
},
{
"type": "Identifier",
"start":31,"end":41,"loc":{"start":{"line":2,"column":21,"index":31},"end":{"line":2,"column":31,"index":41},"identifierName":"a"},
"name": "a",
"typeAnnotation": {
"type": "TypeAnnotation",
"start":33,"end":41,"loc":{"start":{"line":2,"column":23,"index":33},"end":{"line":2,"column":31,"index":41}},
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start":35,"end":41,"loc":{"start":{"line":2,"column":25,"index":35},"end":{"line":2,"column":31,"index":41}}
}
}
},
{
"type": "Identifier",
"start":43,"end":53,"loc":{"start":{"line":2,"column":33,"index":43},"end":{"line":2,"column":43,"index":53},"identifierName":"b"},
"name": "b",
"typeAnnotation": {
"type": "TypeAnnotation",
"start":45,"end":53,"loc":{"start":{"line":2,"column":35,"index":45},"end":{"line":2,"column":43,"index":53}},
"typeAnnotation": {
"type": "StringTypeAnnotation",
"start":47,"end":53,"loc":{"start":{"line":2,"column":37,"index":47},"end":{"line":2,"column":43,"index":53}}
}
}
}
],
"body": {
"type": "BlockStatement",
"start":55,"end":57,"loc":{"start":{"line":2,"column":45,"index":55},"end":{"line":2,"column":47,"index":57}},
"body": [],
"directives": []
}
},
{
"type": "ClassMethod",
"start":62,"end":87,"loc":{"start":{"line":3,"column":4,"index":62},"end":{"line":3,"column":29,"index":87}},
"static": false,
"key": {
"type": "Identifier",
"start":62,"end":63,"loc":{"start":{"line":3,"column":4,"index":62},"end":{"line":3,"column":5,"index":63},"identifierName":"n"},
"name": "n"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":64,"end":77,"loc":{"start":{"line":3,"column":6,"index":64},"end":{"line":3,"column":19,"index":77},"identifierName":"this"},
"name": "this",
"typeAnnotation": {
"type": "TypeAnnotation",
"start":69,"end":77,"loc":{"start":{"line":3,"column":11,"index":69},"end":{"line":3,"column":19,"index":77}},
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start":71,"end":77,"loc":{"start":{"line":3,"column":13,"index":71},"end":{"line":3,"column":19,"index":77}}
}
}
},
{
"type": "RestElement",
"start":79,"end":83,"loc":{"start":{"line":3,"column":21,"index":79},"end":{"line":3,"column":25,"index":83}},
"argument": {
"type": "Identifier",
"start":82,"end":83,"loc":{"start":{"line":3,"column":24,"index":82},"end":{"line":3,"column":25,"index":83},"identifierName":"c"},
"name": "c"
}
}
],
"body": {
"type": "BlockStatement",
"start":85,"end":87,"loc":{"start":{"line":3,"column":27,"index":85},"end":{"line":3,"column":29,"index":87}},
"body": [],
"directives": []
}
},
{
"type": "ClassMethod",
"start":92,"end":111,"loc":{"start":{"line":4,"column":4,"index":92},"end":{"line":4,"column":23,"index":111}},
"static": false,
"key": {
"type": "Identifier",
"start":92,"end":93,"loc":{"start":{"line":4,"column":4,"index":92},"end":{"line":4,"column":5,"index":93},"identifierName":"o"},
"name": "o"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":94,"end":107,"loc":{"start":{"line":4,"column":6,"index":94},"end":{"line":4,"column":19,"index":107},"identifierName":"this"},
"name": "this",
"typeAnnotation": {
"type": "TypeAnnotation",
"start":99,"end":107,"loc":{"start":{"line":4,"column":11,"index":99},"end":{"line":4,"column":19,"index":107}},
"typeAnnotation": {
"type": "NumberTypeAnnotation",
"start":101,"end":107,"loc":{"start":{"line":4,"column":13,"index":101},"end":{"line":4,"column":19,"index":107}}
}
}
}
],
"body": {
"type": "BlockStatement",
"start":109,"end":111,"loc":{"start":{"line":4,"column":21,"index":109},"end":{"line":4,"column":23,"index":111}},
"body": [],
"directives": []
}
},
{
"type": "ClassMethod",
"start":116,"end":133,"loc":{"start":{"line":5,"column":4,"index":116},"end":{"line":5,"column":21,"index":133}},
"static": false,
"key": {
"type": "Identifier",
"start":116,"end":117,"loc":{"start":{"line":5,"column":4,"index":116},"end":{"line":5,"column":5,"index":117},"identifierName":"p"},
"name": "p"
},
"computed": false,
"kind": "method",
"typeParameters": {
"type": "TypeParameterDeclaration",
"start":117,"end":120,"loc":{"start":{"line":5,"column":5,"index":117},"end":{"line":5,"column":8,"index":120}},
"params": [
{
"type": "TypeParameter",
"start":118,"end":119,"loc":{"start":{"line":5,"column":6,"index":118},"end":{"line":5,"column":7,"index":119}},
"name": "T",
"variance": null
}
]
},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":121,"end":129,"loc":{"start":{"line":5,"column":9,"index":121},"end":{"line":5,"column":17,"index":129},"identifierName":"this"},
"name": "this",
"typeAnnotation": {
"type": "TypeAnnotation",
"start":126,"end":129,"loc":{"start":{"line":5,"column":14,"index":126},"end":{"line":5,"column":17,"index":129}},
"typeAnnotation": {
"type": "GenericTypeAnnotation",
"start":128,"end":129,"loc":{"start":{"line":5,"column":16,"index":128},"end":{"line":5,"column":17,"index":129}},
"typeParameters": null,
"id": {
"type": "Identifier",
"start":128,"end":129,"loc":{"start":{"line":5,"column":16,"index":128},"end":{"line":5,"column":17,"index":129},"identifierName":"T"},
"name": "T"
}
}
}
}
],
"body": {
"type": "BlockStatement",
"start":131,"end":133,"loc":{"start":{"line":5,"column":19,"index":131},"end":{"line":5,"column":21,"index":133}},
"body": [],
"directives": []
}
}
]
}
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}