Flow enums: fix enum body location (#10737)

This commit is contained in:
George Zahariev
2019-11-19 20:46:09 -08:00
committed by Brian Ng
parent 6ba113197f
commit 01d6d6dd3b
32 changed files with 235 additions and 228 deletions

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumBooleanBody",
"start": 22,
"end": 44,
"start": 7,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 12
"line": 4,
"column": 1
}
},
"explicitType": true,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumBooleanBody",
"start": 11,
"end": 33,
"start": 7,
"end": 35,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 12
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumBooleanBody",
"start": 22,
"end": 24,
"start": 7,
"end": 26,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 4
"line": 3,
"column": 1
}
},
"explicitType": true,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumBooleanBody",
"start": 11,
"end": 25,
"start": 7,
"end": 27,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 11
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 11,
"end": 18,
"start": 7,
"end": 20,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 4
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 9,
"end": 8,
"start": 7,
"end": 10,
"loc": {
"start": {
"line": 1,
"column": 9
"column": 7
},
"end": {
"line": 1,
"column": 8
"column": 10
}
},
"explicitType": false,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 12,
"end": 11,
"start": 10,
"end": 13,
"loc": {
"start": {
"line": 2,
"column": 0
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
"line": 2,
"column": 1
}
},
"explicitType": false,

View File

@@ -79,16 +79,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 15,
"end": 15,
"start": 14,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 15
"column": 14
},
"end": {
"line": 1,
"column": 15
"column": 16
}
},
"explicitType": false,
@@ -143,16 +143,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 41,
"end": 41,
"start": 40,
"end": 42,
"loc": {
"start": {
"line": 3,
"column": 23
"column": 22
},
"end": {
"line": 3,
"column": 23
"column": 24
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 11,
"end": 27,
"start": 7,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 4,
"column": 8
"line": 5,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 11,
"end": 29,
"start": 7,
"end": 31,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 11
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 16,
"end": 15,
"start": 7,
"end": 17,
"loc": {
"start": {
"line": 2,
"column": 0
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
"line": 2,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 21,
"end": 30,
"start": 7,
"end": 32,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 11
"line": 3,
"column": 1
}
},
"explicitType": true,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumSymbolBody",
"start": 21,
"end": 27,
"start": 7,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 8
"line": 3,
"column": 1
}
},
"members": []

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumBooleanBody",
"start": 22,
"end": 28,
"start": 7,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 8
"line": 3,
"column": 1
}
},
"explicitType": true,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 21,
"end": 27,
"start": 7,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 8
"line": 3,
"column": 1
}
},
"explicitType": true,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumBooleanBody",
"start": 22,
"end": 31,
"start": 7,
"end": 33,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 11
"line": 3,
"column": 1
}
},
"explicitType": true,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumNumberBody",
"start": 21,
"end": 30,
"start": 7,
"end": 32,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 11
"line": 3,
"column": 1
}
},
"explicitType": true,

View File

@@ -66,16 +66,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 11,
"end": 22,
"start": 7,
"end": 24,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 6
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 11,
"end": 12,
"start": 7,
"end": 14,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 3
"line": 3,
"column": 1
}
},
"explicitType": false,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumNumberBody",
"start": 21,
"end": 36,
"start": 7,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 8
"line": 4,
"column": 1
}
},
"explicitType": true,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumNumberBody",
"start": 11,
"end": 26,
"start": 7,
"end": 28,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 8
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumNumberBody",
"start": 21,
"end": 23,
"start": 7,
"end": 25,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 2,
"column": 4
"line": 3,
"column": 1
}
},
"explicitType": true,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumNumberBody",
"start": 11,
"end": 22,
"start": 7,
"end": 24,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 8
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 13,
"end": 12,
"start": 11,
"end": 14,
"loc": {
"start": {
"line": 2,
"column": 0
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 12
"line": 2,
"column": 1
}
},
"explicitType": false,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 21,
"end": 28,
"start": 7,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 4
"line": 4,
"column": 1
}
},
"explicitType": true,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 21,
"end": 40,
"start": 7,
"end": 42,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 10
"line": 4,
"column": 1
}
},
"explicitType": true,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 11,
"end": 18,
"start": 7,
"end": 20,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 4
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 11,
"end": 30,
"start": 7,
"end": 32,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 10
"line": 4,
"column": 1
}
},
"explicitType": false,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 21,
"end": 39,
"start": 7,
"end": 41,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 4,
"column": 4
"line": 5,
"column": 1
}
},
"explicitType": true,

View File

@@ -65,16 +65,16 @@
},
"body": {
"type": "EnumStringBody",
"start": 21,
"end": 45,
"start": 7,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 4,
"column": 10
"line": 5,
"column": 1
}
},
"explicitType": true,

View File

@@ -62,16 +62,16 @@
},
"body": {
"type": "EnumSymbolBody",
"start": 21,
"end": 28,
"start": 7,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 2
"line": 1,
"column": 7
},
"end": {
"line": 3,
"column": 4
"line": 4,
"column": 1
}
},
"members": [