243 lines
5.0 KiB
JSON
243 lines
5.0 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "DeclareClass",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "A",
|
|
"range": [
|
|
14,
|
|
15
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"typeParameters": {
|
|
"type": "TypeParameterDeclaration",
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"name": "T",
|
|
"range": [
|
|
16,
|
|
17
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
15,
|
|
18
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "ObjectTypeAnnotation",
|
|
"properties": [
|
|
{
|
|
"type": "ObjectTypeProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"name": "x",
|
|
"range": [
|
|
34,
|
|
35
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "NumberTypeAnnotation",
|
|
"range": [
|
|
37,
|
|
43
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
"optional": false,
|
|
"range": [
|
|
34,
|
|
43
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"indexers": [],
|
|
"callProperties": [],
|
|
"range": [
|
|
32,
|
|
45
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
"extends": [
|
|
{
|
|
"type": "InterfaceExtends",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "B",
|
|
"range": [
|
|
27,
|
|
28
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
"typeParameters": {
|
|
"type": "TypeParameterInstantiation",
|
|
"params": [
|
|
{
|
|
"type": "GenericTypeAnnotation",
|
|
"id": {
|
|
"type": "Identifier",
|
|
"name": "T",
|
|
"range": [
|
|
29,
|
|
30
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
"typeParameters": null,
|
|
"range": [
|
|
29,
|
|
30
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 30
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
28,
|
|
31
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
27,
|
|
31
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 31
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
45
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 45
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |