[flow] Explicit inexact objects with ... (#8884)
This commit is contained in:
@@ -156,7 +156,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -156,7 +156,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -308,7 +308,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -256,7 +256,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -239,7 +239,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -239,7 +239,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -146,7 +146,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +192,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,7 +243,8 @@
|
||||
}
|
||||
],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -422,7 +422,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
//@flow
|
||||
declare class A {
|
||||
...;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Spread operator cannot appear in class or interface definitions (3:2)"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
//@flow
|
||||
declare class B {
|
||||
foo: number;
|
||||
...;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Spread operator cannot appear in class or interface definitions (4:2)"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
//@flow
|
||||
declare class C {
|
||||
...;
|
||||
foo: number;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Spread operator cannot appear in class or interface definitions (3:2)"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//@flow
|
||||
declare class D {
|
||||
foo: number;
|
||||
...;
|
||||
bar: number;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Spread operator cannot appear in class or interface definitions (4:2)"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
//@flow
|
||||
interface F {
|
||||
foo: number;
|
||||
...;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Spread operator cannot appear in class or interface definitions (4:2)"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
//@flow
|
||||
interface G {
|
||||
...;
|
||||
foo: number;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Spread operator cannot appear in class or interface definitions (3:2)"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//@flow
|
||||
interface H {
|
||||
foo: number;
|
||||
...;
|
||||
bar: number;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Spread operator cannot appear in class or interface definitions (4:2)"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//@flow
|
||||
type T = {| foo: number, ... |}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Explicit inexact syntax cannot appear inside an explicit exact object type (2:29)"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//@flow
|
||||
type T = {..., foo: number};
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Explicit inexact syntax must appear at the end of an inexact object (2:15)"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
//@flow
|
||||
type T = {...};
|
||||
type U = {x: number, ...};
|
||||
type V = {x: number, ...V, ...U};
|
||||
437
packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object/output.json
vendored
Normal file
437
packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object/output.json
vendored
Normal file
@@ -0,0 +1,437 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 84,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 84,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"interpreter": null,
|
||||
"body": [
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 8,
|
||||
"end": 23,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 15
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 13,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 17,
|
||||
"end": 22,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 14
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false,
|
||||
"inexact": true
|
||||
},
|
||||
"leadingComments": [
|
||||
{
|
||||
"type": "CommentLine",
|
||||
"value": "@flow",
|
||||
"start": 0,
|
||||
"end": 7,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 24,
|
||||
"end": 50,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 26
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 29,
|
||||
"end": 30,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "U"
|
||||
},
|
||||
"name": "U"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 33,
|
||||
"end": 49,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 25
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
"start": 34,
|
||||
"end": 43,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 34,
|
||||
"end": 35,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 11
|
||||
},
|
||||
"identifierName": "x"
|
||||
},
|
||||
"name": "x"
|
||||
},
|
||||
"static": false,
|
||||
"proto": false,
|
||||
"kind": "init",
|
||||
"method": false,
|
||||
"value": {
|
||||
"type": "NumberTypeAnnotation",
|
||||
"start": 37,
|
||||
"end": 43,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 13
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 19
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false,
|
||||
"inexact": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 51,
|
||||
"end": 84,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 33
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 56,
|
||||
"end": 57,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "V"
|
||||
},
|
||||
"name": "V"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 60,
|
||||
"end": 83,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 32
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
"start": 61,
|
||||
"end": 70,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 19
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 61,
|
||||
"end": 62,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 11
|
||||
},
|
||||
"identifierName": "x"
|
||||
},
|
||||
"name": "x"
|
||||
},
|
||||
"static": false,
|
||||
"proto": false,
|
||||
"kind": "init",
|
||||
"method": false,
|
||||
"value": {
|
||||
"type": "NumberTypeAnnotation",
|
||||
"start": 64,
|
||||
"end": 70,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 13
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 19
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeSpreadProperty",
|
||||
"start": 72,
|
||||
"end": 76,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 21
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 25
|
||||
}
|
||||
},
|
||||
"argument": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 75,
|
||||
"end": 76,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 24
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 25
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 75,
|
||||
"end": 76,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 24
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 25
|
||||
},
|
||||
"identifierName": "V"
|
||||
},
|
||||
"name": "V"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeSpreadProperty",
|
||||
"start": 78,
|
||||
"end": 82,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 27
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"argument": {
|
||||
"type": "GenericTypeAnnotation",
|
||||
"start": 81,
|
||||
"end": 82,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 30
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"typeParameters": null,
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 81,
|
||||
"end": 82,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 30
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 31
|
||||
},
|
||||
"identifierName": "U"
|
||||
},
|
||||
"name": "U"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
},
|
||||
"comments": [
|
||||
{
|
||||
"type": "CommentLine",
|
||||
"value": "@flow",
|
||||
"start": 0,
|
||||
"end": 7,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//@flow
|
||||
type T = {x: number, ..., y: number};
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Explicit inexact syntax must appear at the end of an inexact object (2:26)"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//@flow
|
||||
type U = {x: number, ..., ...};
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Explicit inexact syntax must appear at the end of an inexact object (2:26)"
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
//@flow
|
||||
type V = {x: number, ..., ...X};
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"sourceType": "module",
|
||||
"plugins": ["jsx", "flow"],
|
||||
"throws": "Explicit inexact syntax must appear at the end of an inexact object (2:26)"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
//@flow
|
||||
type T = { ..., };
|
||||
type U = { ...; };
|
||||
type V = {
|
||||
x: number,
|
||||
...,
|
||||
};
|
||||
type W = {
|
||||
x: number;
|
||||
...;
|
||||
};
|
||||
@@ -0,0 +1,395 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 113,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 11,
|
||||
"column": 2
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 113,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 11,
|
||||
"column": 2
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"interpreter": null,
|
||||
"body": [
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 8,
|
||||
"end": 26,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 18
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 13,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "T"
|
||||
},
|
||||
"name": "T"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 17,
|
||||
"end": 25,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 17
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false,
|
||||
"inexact": true
|
||||
},
|
||||
"leadingComments": [
|
||||
{
|
||||
"type": "CommentLine",
|
||||
"value": "@flow",
|
||||
"start": 0,
|
||||
"end": 7,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 27,
|
||||
"end": 45,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 18
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 32,
|
||||
"end": 33,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "U"
|
||||
},
|
||||
"name": "U"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 36,
|
||||
"end": 44,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 17
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false,
|
||||
"inexact": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 46,
|
||||
"end": 79,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 2
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 51,
|
||||
"end": 52,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "V"
|
||||
},
|
||||
"name": "V"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 55,
|
||||
"end": 78,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 7,
|
||||
"column": 1
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
"start": 59,
|
||||
"end": 68,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 2
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 11
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 59,
|
||||
"end": 60,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 2
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 3
|
||||
},
|
||||
"identifierName": "x"
|
||||
},
|
||||
"name": "x"
|
||||
},
|
||||
"static": false,
|
||||
"proto": false,
|
||||
"kind": "init",
|
||||
"method": false,
|
||||
"value": {
|
||||
"type": "NumberTypeAnnotation",
|
||||
"start": 62,
|
||||
"end": 68,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 11
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false,
|
||||
"inexact": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "TypeAlias",
|
||||
"start": 80,
|
||||
"end": 113,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 8,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 11,
|
||||
"column": 2
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "Identifier",
|
||||
"start": 85,
|
||||
"end": 86,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 8,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 8,
|
||||
"column": 6
|
||||
},
|
||||
"identifierName": "W"
|
||||
},
|
||||
"name": "W"
|
||||
},
|
||||
"typeParameters": null,
|
||||
"right": {
|
||||
"type": "ObjectTypeAnnotation",
|
||||
"start": 89,
|
||||
"end": 112,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 8,
|
||||
"column": 9
|
||||
},
|
||||
"end": {
|
||||
"line": 11,
|
||||
"column": 1
|
||||
}
|
||||
},
|
||||
"callProperties": [],
|
||||
"properties": [
|
||||
{
|
||||
"type": "ObjectTypeProperty",
|
||||
"start": 93,
|
||||
"end": 102,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 9,
|
||||
"column": 2
|
||||
},
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 11
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"type": "Identifier",
|
||||
"start": 93,
|
||||
"end": 94,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 9,
|
||||
"column": 2
|
||||
},
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 3
|
||||
},
|
||||
"identifierName": "x"
|
||||
},
|
||||
"name": "x"
|
||||
},
|
||||
"static": false,
|
||||
"proto": false,
|
||||
"kind": "init",
|
||||
"method": false,
|
||||
"value": {
|
||||
"type": "NumberTypeAnnotation",
|
||||
"start": 96,
|
||||
"end": 102,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 9,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 11
|
||||
}
|
||||
}
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false,
|
||||
"inexact": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"directives": []
|
||||
},
|
||||
"comments": [
|
||||
{
|
||||
"type": "CommentLine",
|
||||
"value": "@flow",
|
||||
"start": 0,
|
||||
"end": 7,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -166,7 +166,8 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -148,7 +148,8 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -147,7 +147,8 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -168,7 +168,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
"body": {
|
||||
|
||||
@@ -168,7 +168,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
"body": {
|
||||
|
||||
@@ -233,7 +233,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -153,7 +153,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeAnnotation",
|
||||
@@ -232,7 +233,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -626,7 +628,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeAnnotation",
|
||||
@@ -705,7 +708,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -715,7 +719,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -893,7 +898,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
},
|
||||
{
|
||||
"type": "ObjectTypeAnnotation",
|
||||
@@ -972,7 +978,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -982,7 +989,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -213,7 +213,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": true
|
||||
"exact": true,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -532,7 +533,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": true
|
||||
"exact": true,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -744,7 +746,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": true
|
||||
"exact": true,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1003,7 +1006,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": true
|
||||
"exact": true,
|
||||
"inexact": false
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
@@ -1064,7 +1068,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1537,7 +1542,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
@@ -1598,7 +1604,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": true
|
||||
"exact": true,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -166,7 +166,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -166,7 +166,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -195,7 +195,8 @@
|
||||
}
|
||||
],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -195,7 +195,8 @@
|
||||
}
|
||||
],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -128,7 +128,8 @@
|
||||
}
|
||||
],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -160,7 +160,8 @@
|
||||
}
|
||||
],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -110,7 +110,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -130,7 +130,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
@@ -167,13 +168,15 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -276,7 +276,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -96,7 +96,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
"body": {
|
||||
|
||||
@@ -160,7 +160,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -160,7 +160,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -225,7 +225,8 @@
|
||||
}
|
||||
],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -174,7 +174,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,7 +213,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -211,7 +211,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
},
|
||||
"variance": null,
|
||||
"optional": false
|
||||
@@ -219,7 +220,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -225,7 +225,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
"variance": null,
|
||||
@@ -234,7 +235,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -213,7 +213,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -213,7 +213,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -235,7 +235,8 @@
|
||||
}
|
||||
],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -322,7 +322,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -295,7 +295,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -215,7 +215,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -215,7 +215,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -220,7 +220,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,7 +266,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -151,7 +151,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -309,7 +310,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -433,7 +435,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -590,7 +593,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -693,7 +697,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -896,7 +901,8 @@
|
||||
"properties": [],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -492,7 +492,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -323,7 +323,8 @@
|
||||
],
|
||||
"indexers": [],
|
||||
"internalSlots": [],
|
||||
"exact": false
|
||||
"exact": false,
|
||||
"inexact": false
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
|
||||
Reference in New Issue
Block a user