93 lines
4.2 KiB
JSON
93 lines
4.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":30,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":30}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":30,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":30}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":30,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":30},"identifierName":"a"},
|
|
"name": "a",
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":6,"end":30,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":30}},
|
|
"typeAnnotation": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"start":8,"end":30,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":30}},
|
|
"callProperties": [
|
|
{
|
|
"type": "ObjectTypeCallProperty",
|
|
"start":10,"end":27,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":27}},
|
|
"static": false,
|
|
"value": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start":10,"end":27,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":27}},
|
|
"params": [
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start":14,"end":18,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":18}},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"start":14,"end":15,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":15},"identifierName":"x"},
|
|
"name": "x"
|
|
},
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18},"identifierName":"T"},
|
|
"name": "T"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"rest": null,
|
|
"typeParameters": {
|
|
"type": "TypeParameterDeclaration",
|
|
"start":10,"end":13,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":13}},
|
|
"params": [
|
|
{
|
|
"type": "TypeParameter",
|
|
"start":11,"end":12,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":12}},
|
|
"name": "T",
|
|
"variance": null
|
|
}
|
|
]
|
|
},
|
|
"returnType": {
|
|
"type": "NumberTypeAnnotation",
|
|
"start":21,"end":27,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":27}}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"properties": [],
|
|
"indexers": [],
|
|
"internalSlots": [],
|
|
"exact": false,
|
|
"inexact": false
|
|
}
|
|
}
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |