mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
239 lines
11 KiB
JSON
239 lines
11 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":168,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":168}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":168,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":168}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "DeclareClass",
|
|
"start":0,"end":168,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":6,"column":1,"index":168}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"A"},
|
|
"name": "A"
|
|
},
|
|
"typeParameters": null,
|
|
"extends": [],
|
|
"implements": [],
|
|
"mixins": [],
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":16,"end":168,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":6,"column":1,"index":168}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":22,"end":69,"loc":{"start":{"line":2,"column":4,"index":22},"end":{"line":2,"column":51,"index":69}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":22,"end":23,"loc":{"start":{"line":2,"column":4,"index":22},"end":{"line":2,"column":5,"index":23},"identifierName":"m"},
|
|
"name": "m"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": true,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":22,"end":69,"loc":{"start":{"line":2,"column":4,"index":22},"end":{"line":2,"column":51,"index":69}},
|
|
"params": [
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start":39,"end":49,"loc":{"start":{"line":2,"column":21,"index":39},"end":{"line":2,"column":31,"index":49}},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"start":39,"end":40,"loc":{"start":{"line":2,"column":21,"index":39},"end":{"line":2,"column":22,"index":40},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":43,"end":49,"loc":{"start":{"line":2,"column":25,"index":43},"end":{"line":2,"column":31,"index":49}}
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start":51,"end":61,"loc":{"start":{"line":2,"column":33,"index":51},"end":{"line":2,"column":43,"index":61}},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"start":51,"end":52,"loc":{"start":{"line":2,"column":33,"index":51},"end":{"line":2,"column":34,"index":52},"identifierName":"b"},
|
|
"name": "b"
|
|
},
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "StringTypeAnnotation",
|
|
"start":55,"end":61,"loc":{"start":{"line":2,"column":37,"index":55},"end":{"line":2,"column":43,"index":61}}
|
|
}
|
|
}
|
|
],
|
|
"rest": null,
|
|
"typeParameters": null,
|
|
"this": {
|
|
"type": "FunctionTypeParam",
|
|
"start":24,"end":37,"loc":{"start":{"line":2,"column":6,"index":24},"end":{"line":2,"column":19,"index":37}},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":31,"end":37,"loc":{"start":{"line":2,"column":13,"index":31},"end":{"line":2,"column":19,"index":37}}
|
|
}
|
|
},
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start":65,"end":69,"loc":{"start":{"line":2,"column":47,"index":65},"end":{"line":2,"column":51,"index":69}}
|
|
}
|
|
},
|
|
"optional": false
|
|
},
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":75,"end":110,"loc":{"start":{"line":3,"column":4,"index":75},"end":{"line":3,"column":39,"index":110}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":75,"end":76,"loc":{"start":{"line":3,"column":4,"index":75},"end":{"line":3,"column":5,"index":76},"identifierName":"n"},
|
|
"name": "n"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": true,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":75,"end":110,"loc":{"start":{"line":3,"column":4,"index":75},"end":{"line":3,"column":39,"index":110}},
|
|
"params": [],
|
|
"rest": {
|
|
"type": "FunctionTypeParam",
|
|
"start":95,"end":102,"loc":{"start":{"line":3,"column":24,"index":95},"end":{"line":3,"column":31,"index":102}},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"start":95,"end":96,"loc":{"start":{"line":3,"column":24,"index":95},"end":{"line":3,"column":25,"index":96},"identifierName":"c"},
|
|
"name": "c"
|
|
},
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "AnyTypeAnnotation",
|
|
"start":99,"end":102,"loc":{"start":{"line":3,"column":28,"index":99},"end":{"line":3,"column":31,"index":102}}
|
|
}
|
|
},
|
|
"typeParameters": null,
|
|
"this": {
|
|
"type": "FunctionTypeParam",
|
|
"start":77,"end":90,"loc":{"start":{"line":3,"column":6,"index":77},"end":{"line":3,"column":19,"index":90}},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":84,"end":90,"loc":{"start":{"line":3,"column":13,"index":84},"end":{"line":3,"column":19,"index":90}}
|
|
}
|
|
},
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start":106,"end":110,"loc":{"start":{"line":3,"column":35,"index":106},"end":{"line":3,"column":39,"index":110}}
|
|
}
|
|
},
|
|
"optional": false
|
|
},
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":116,"end":139,"loc":{"start":{"line":4,"column":4,"index":116},"end":{"line":4,"column":27,"index":139}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":116,"end":117,"loc":{"start":{"line":4,"column":4,"index":116},"end":{"line":4,"column":5,"index":117},"identifierName":"o"},
|
|
"name": "o"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": true,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":116,"end":139,"loc":{"start":{"line":4,"column":4,"index":116},"end":{"line":4,"column":27,"index":139}},
|
|
"params": [],
|
|
"rest": null,
|
|
"typeParameters": null,
|
|
"this": {
|
|
"type": "FunctionTypeParam",
|
|
"start":118,"end":131,"loc":{"start":{"line":4,"column":6,"index":118},"end":{"line":4,"column":19,"index":131}},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":125,"end":131,"loc":{"start":{"line":4,"column":13,"index":125},"end":{"line":4,"column":19,"index":131}}
|
|
}
|
|
},
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start":135,"end":139,"loc":{"start":{"line":4,"column":23,"index":135},"end":{"line":4,"column":27,"index":139}}
|
|
}
|
|
},
|
|
"optional": false
|
|
},
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":145,"end":166,"loc":{"start":{"line":5,"column":4,"index":145},"end":{"line":5,"column":25,"index":166}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":145,"end":146,"loc":{"start":{"line":5,"column":4,"index":145},"end":{"line":5,"column":5,"index":146},"identifierName":"p"},
|
|
"name": "p"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": true,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":145,"end":166,"loc":{"start":{"line":5,"column":4,"index":145},"end":{"line":5,"column":25,"index":166}},
|
|
"params": [],
|
|
"rest": null,
|
|
"typeParameters": {
|
|
"type": "TypeParameterDeclaration",
|
|
"start":146,"end":149,"loc":{"start":{"line":5,"column":5,"index":146},"end":{"line":5,"column":8,"index":149}},
|
|
"params": [
|
|
{
|
|
"type": "TypeParameter",
|
|
"start":147,"end":148,"loc":{"start":{"line":5,"column":6,"index":147},"end":{"line":5,"column":7,"index":148}},
|
|
"name": "T",
|
|
"variance": null
|
|
}
|
|
]
|
|
},
|
|
"this": {
|
|
"type": "FunctionTypeParam",
|
|
"start":150,"end":158,"loc":{"start":{"line":5,"column":9,"index":150},"end":{"line":5,"column":17,"index":158}},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":157,"end":158,"loc":{"start":{"line":5,"column":16,"index":157},"end":{"line":5,"column":17,"index":158}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":157,"end":158,"loc":{"start":{"line":5,"column":16,"index":157},"end":{"line":5,"column":17,"index":158},"identifierName":"T"},
|
|
"name": "T"
|
|
}
|
|
}
|
|
},
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start":162,"end":166,"loc":{"start":{"line":5,"column":21,"index":162},"end":{"line":5,"column":25,"index":166}}
|
|
}
|
|
},
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|