mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
165 lines
6.5 KiB
JSON
165 lines
6.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":102,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":1,"index":102}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":102,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":11,"column":1,"index":102}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "DeclareClass",
|
|
"start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":31}},
|
|
"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":31,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":3,"column":1,"index":31}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":20,"end":28,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":10,"index":28}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":20,"end":25,"loc":{"start":{"line":2,"column":2,"index":20},"end":{"line":2,"column":7,"index":25},"identifierName":"proto"},
|
|
"name": "proto"
|
|
},
|
|
"static": false,
|
|
"proto": false,
|
|
"kind": "init",
|
|
"method": false,
|
|
"value": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":27,"end":28,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":10,"index":28}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":27,"end":28,"loc":{"start":{"line":2,"column":9,"index":27},"end":{"line":2,"column":10,"index":28},"identifierName":"T"},
|
|
"name": "T"
|
|
}
|
|
},
|
|
"variance": null,
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
},
|
|
{
|
|
"type": "DeclareClass",
|
|
"start":33,"end":66,"loc":{"start":{"line":5,"column":0,"index":33},"end":{"line":7,"column":1,"index":66}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":47,"end":48,"loc":{"start":{"line":5,"column":14,"index":47},"end":{"line":5,"column":15,"index":48},"identifierName":"B"},
|
|
"name": "B"
|
|
},
|
|
"typeParameters": null,
|
|
"extends": [],
|
|
"implements": [],
|
|
"mixins": [],
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":49,"end":66,"loc":{"start":{"line":5,"column":16,"index":49},"end":{"line":7,"column":1,"index":66}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":53,"end":63,"loc":{"start":{"line":6,"column":2,"index":53},"end":{"line":6,"column":12,"index":63}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":59,"end":60,"loc":{"start":{"line":6,"column":8,"index":59},"end":{"line":6,"column":9,"index":60},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"static": false,
|
|
"proto": true,
|
|
"kind": "init",
|
|
"method": false,
|
|
"value": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":62,"end":63,"loc":{"start":{"line":6,"column":11,"index":62},"end":{"line":6,"column":12,"index":63}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":62,"end":63,"loc":{"start":{"line":6,"column":11,"index":62},"end":{"line":6,"column":12,"index":63},"identifierName":"T"},
|
|
"name": "T"
|
|
}
|
|
},
|
|
"variance": null,
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
},
|
|
{
|
|
"type": "DeclareClass",
|
|
"start":68,"end":102,"loc":{"start":{"line":9,"column":0,"index":68},"end":{"line":11,"column":1,"index":102}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":82,"end":83,"loc":{"start":{"line":9,"column":14,"index":82},"end":{"line":9,"column":15,"index":83},"identifierName":"C"},
|
|
"name": "C"
|
|
},
|
|
"typeParameters": null,
|
|
"extends": [],
|
|
"implements": [],
|
|
"mixins": [],
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":84,"end":102,"loc":{"start":{"line":9,"column":16,"index":84},"end":{"line":11,"column":1,"index":102}},
|
|
"callProperties": [],
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"start":88,"end":99,"loc":{"start":{"line":10,"column":2,"index":88},"end":{"line":10,"column":13,"index":99}},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":95,"end":96,"loc":{"start":{"line":10,"column":9,"index":95},"end":{"line":10,"column":10,"index":96},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"static": false,
|
|
"proto": true,
|
|
"kind": "init",
|
|
"method": false,
|
|
"value": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":98,"end":99,"loc":{"start":{"line":10,"column":12,"index":98},"end":{"line":10,"column":13,"index":99}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":98,"end":99,"loc":{"start":{"line":10,"column":12,"index":98},"end":{"line":10,"column":13,"index":99},"identifierName":"T"},
|
|
"name": "T"
|
|
}
|
|
},
|
|
"variance": {
|
|
"type": "Variance",
|
|
"start":94,"end":95,"loc":{"start":{"line":10,"column":8,"index":94},"end":{"line":10,"column":9,"index":95}},
|
|
"kind": "plus"
|
|
},
|
|
"optional": false
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|