Property variance type annotations for Flow plugin (#161)
* Property variance type annotations for Flow plugin Non-method properties and indexers of object types, declare class, and interfaces can be "positive" or "negative." Class fields, but again not methods, can also have variance. This PR generalizes the variance annotations for type parameters into a new node type, and reuses that node for those properties. The code for object types is reused for interfaces and declare classes. The changes there are straightfoward. The code for class fields is reused for object literals, which do not support variance annotations (currently). This code is a bit sketchy, because we always parse variance annotations in the `parsePropertyName` extension, then error in a the subsequent parse phase for object literals (`parseObjPropValue`) or class methods (`parseClassMethod`). * Remove bogus unreachable code, clarify variance parsing conditional * Don't use a new node type for variance annotations Adding a new node type, specifically changing the TypeParameter node's variance property to be node-valued, is a breaking change. We might choose to make this breaking change in a later version. * s/start/variancePos
This commit is contained in:
committed by
Daniel Tschinder
parent
b5877f04b1
commit
26809e8ce7
@@ -292,7 +292,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -188,7 +188,8 @@
|
||||
}
|
||||
},
|
||||
"optional": false,
|
||||
"static": true
|
||||
"static": true,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -137,7 +137,8 @@
|
||||
"column": 51
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -231,7 +231,8 @@
|
||||
},
|
||||
"name": "U"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -122,7 +122,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
@@ -271,7 +272,8 @@
|
||||
"name": "T"
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -125,7 +125,8 @@
|
||||
}
|
||||
},
|
||||
"optional": false,
|
||||
"static": false
|
||||
"static": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -174,7 +175,8 @@
|
||||
}
|
||||
},
|
||||
"optional": false,
|
||||
"static": true
|
||||
"static": true,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -223,7 +225,8 @@
|
||||
}
|
||||
},
|
||||
"optional": false,
|
||||
"static": false
|
||||
"static": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
|
||||
@@ -235,7 +235,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -333,4 +333,4 @@
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,8 @@
|
||||
},
|
||||
"typeParameters": null
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -121,7 +121,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [
|
||||
@@ -184,7 +185,8 @@
|
||||
"column": 46
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -140,7 +140,8 @@
|
||||
"raw": "\"A\""
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
@@ -211,7 +212,8 @@
|
||||
"raw": "\"B\""
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -149,7 +149,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -197,7 +198,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
@@ -457,7 +459,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -505,7 +508,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
@@ -912,7 +916,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -960,13 +965,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"exact": true
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -1014,7 +1021,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
@@ -1424,7 +1432,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -1472,13 +1481,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"exact": false
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -1526,7 +1537,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
|
||||
1
test/fixtures/flow/type-annotations/110/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/110/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type X = {+p:T}
|
||||
155
test/fixtures/flow/type-annotations/110/expected.json
vendored
Normal file
155
test/fixtures/flow/type-annotations/110/expected.json
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"body": [
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 5,
|
||||
"end": 6,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "X"
|
||||
},
|
||||
"name": "X"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 9,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
"start": 10,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 11,
|
||||
"end": 12,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"identifierName": "p"
|
||||
},
|
||||
"name": "p"
|
||||
},
|
||||
"value": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 13,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 13,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
}
|
||||
},
|
||||
"optional": false,
|
||||
"static": false,
|
||||
"variance": "plus"
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/111/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/111/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type X = {-p:T}
|
||||
155
test/fixtures/flow/type-annotations/111/expected.json
vendored
Normal file
155
test/fixtures/flow/type-annotations/111/expected.json
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"body": [
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 0,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 5,
|
||||
"end": 6,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "X"
|
||||
},
|
||||
"name": "X"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 9,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
"start": 10,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 11,
|
||||
"end": 12,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"identifierName": "p"
|
||||
},
|
||||
"name": "p"
|
||||
},
|
||||
"value": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 13,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 13,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
}
|
||||
},
|
||||
"optional": false,
|
||||
"static": false,
|
||||
"variance": "minus"
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/112/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/112/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type X = {+m(): T}
|
||||
3
test/fixtures/flow/type-annotations/112/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/112/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:10)"
|
||||
}
|
||||
2
test/fixtures/flow/type-annotations/113/actual.js
vendored
Normal file
2
test/fixtures/flow/type-annotations/113/actual.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
type X = {-m(): T}
|
||||
|
||||
3
test/fixtures/flow/type-annotations/113/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/113/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:10)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/114/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/114/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type X = {+[k:K]:V}
|
||||
187
test/fixtures/flow/type-annotations/114/expected.json
vendored
Normal file
187
test/fixtures/flow/type-annotations/114/expected.json
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"body": [
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 0,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 5,
|
||||
"end": 6,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "X"
|
||||
},
|
||||
"name": "X"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 9,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": [
|
||||
{
|
||||
"type": "ObjectTypeIndexer",
|
||||
"start": 10,
|
||||
"end": 18,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 18
|
||||
}
|
||||
},
|
||||
"static": false,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 12,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"identifierName": "k"
|
||||
},
|
||||
"name": "k"
|
||||
},
|
||||
"key": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 14,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 14,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
},
|
||||
"identifierName": "K"
|
||||
},
|
||||
"name": "K"
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"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": "V"
|
||||
},
|
||||
"name": "V"
|
||||
}
|
||||
},
|
||||
"variance": "plus"
|
||||
}
|
||||
],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/115/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/115/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type X = {-[k:K]:V}
|
||||
187
test/fixtures/flow/type-annotations/115/expected.json
vendored
Normal file
187
test/fixtures/flow/type-annotations/115/expected.json
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"body": [
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 0,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 5,
|
||||
"end": 6,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "X"
|
||||
},
|
||||
"name": "X"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 9,
|
||||
"end": 19,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": [
|
||||
{
|
||||
"type": "ObjectTypeIndexer",
|
||||
"start": 10,
|
||||
"end": 18,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 18
|
||||
}
|
||||
},
|
||||
"static": false,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 12,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"identifierName": "k"
|
||||
},
|
||||
"name": "k"
|
||||
},
|
||||
"key": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 14,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 14,
|
||||
"end": 15,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
},
|
||||
"identifierName": "K"
|
||||
},
|
||||
"name": "K"
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"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": "V"
|
||||
},
|
||||
"name": "V"
|
||||
}
|
||||
},
|
||||
"variance": "minus"
|
||||
}
|
||||
],
|
||||
"exact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/116/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/116/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type X = {+():T}
|
||||
3
test/fixtures/flow/type-annotations/116/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/116/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:10)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/117/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/117/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
type X = {-():T}
|
||||
3
test/fixtures/flow/type-annotations/117/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/117/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:10)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/118/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/118/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class A {+p:T}
|
||||
168
test/fixtures/flow/type-annotations/118/expected.json
vendored
Normal file
168
test/fixtures/flow/type-annotations/118/expected.json
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"body": [
|
||||
{
|
||||
"type": "ClassDeclaration",
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 6,
|
||||
"end": 7,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 6
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
},
|
||||
"identifierName": "A"
|
||||
},
|
||||
"name": "A"
|
||||
},
|
||||
"superClass": null,
|
||||
"body": {
|
||||
"type": "ClassBody",
|
||||
"start": 8,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"body": [
|
||||
{
|
||||
"type": "ClassProperty",
|
||||
"start": 9,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"computed": false,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 10,
|
||||
"end": 11,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
},
|
||||
"identifierName": "p"
|
||||
},
|
||||
"name": "p"
|
||||
},
|
||||
"variance": "plus",
|
||||
"static": false,
|
||||
"typeAnnotation": {
|
||||
"type": "TypeAnnotation",
|
||||
"start": 11,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 12,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 12,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
}
|
||||
}
|
||||
},
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/119/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/119/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class A {-p:T}
|
||||
168
test/fixtures/flow/type-annotations/119/expected.json
vendored
Normal file
168
test/fixtures/flow/type-annotations/119/expected.json
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"body": [
|
||||
{
|
||||
"type": "ClassDeclaration",
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 6,
|
||||
"end": 7,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 6
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
},
|
||||
"identifierName": "A"
|
||||
},
|
||||
"name": "A"
|
||||
},
|
||||
"superClass": null,
|
||||
"body": {
|
||||
"type": "ClassBody",
|
||||
"start": 8,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"body": [
|
||||
{
|
||||
"type": "ClassProperty",
|
||||
"start": 9,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"computed": false,
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 10,
|
||||
"end": 11,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
},
|
||||
"identifierName": "p"
|
||||
},
|
||||
"name": "p"
|
||||
},
|
||||
"variance": "minus",
|
||||
"static": false,
|
||||
"typeAnnotation": {
|
||||
"type": "TypeAnnotation",
|
||||
"start": 11,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 11
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"typeAnnotation": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 12,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 12,
|
||||
"end": 13,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 13
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
}
|
||||
}
|
||||
},
|
||||
"value": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/120/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/120/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class A {+m():T}
|
||||
3
test/fixtures/flow/type-annotations/120/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/120/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:9)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/121/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/121/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class A {-m():T}
|
||||
3
test/fixtures/flow/type-annotations/121/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/121/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:9)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/122/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/122/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
({+p:e})
|
||||
3
test/fixtures/flow/type-annotations/122/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/122/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:2)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/123/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/123/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
({-p:e})
|
||||
3
test/fixtures/flow/type-annotations/123/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/123/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:2)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/124/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/124/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class C { static + m() {} }
|
||||
3
test/fixtures/flow/type-annotations/124/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/124/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:18)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/125/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/125/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
declare class C { static + m() {} }
|
||||
3
test/fixtures/flow/type-annotations/125/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/125/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:26)"
|
||||
}
|
||||
1
test/fixtures/flow/type-annotations/126/actual.js
vendored
Normal file
1
test/fixtures/flow/type-annotations/126/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
({ + m() {} });
|
||||
3
test/fixtures/flow/type-annotations/126/options.json
vendored
Normal file
3
test/fixtures/flow/type-annotations/126/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:3)"
|
||||
}
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": [
|
||||
@@ -210,7 +211,8 @@
|
||||
"column": 49
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -161,7 +161,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -194,7 +195,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -193,12 +193,14 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -207,13 +207,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -194,7 +195,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -194,7 +195,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": true
|
||||
"optional": true,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -223,7 +223,8 @@
|
||||
"column": 49
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -198,7 +198,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -198,7 +198,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -203,7 +203,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": true
|
||||
"optional": true,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -194,7 +195,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -241,7 +243,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
@@ -139,7 +139,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
@@ -321,7 +322,8 @@
|
||||
"name": "T"
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
6
test/fixtures/flow/typecasts/2/expected.json
vendored
6
test/fixtures/flow/typecasts/2/expected.json
vendored
@@ -256,7 +256,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
@@ -303,7 +304,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"optional": false
|
||||
"optional": false,
|
||||
"variance": null
|
||||
}
|
||||
],
|
||||
"indexers": []
|
||||
|
||||
Reference in New Issue
Block a user