Merge pull request #57 from danez/fix-arrow-location
Fix arrow param locations with flow types
This commit is contained in:
@@ -126,7 +126,7 @@
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 15,
|
||||
"end": 16,
|
||||
"end": 24,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -134,7 +134,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 16
|
||||
"column": 24
|
||||
}
|
||||
},
|
||||
"name": "y",
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
"left": {
|
||||
"type": "Identifier",
|
||||
"start": 13,
|
||||
"end": 21,
|
||||
"end": 28,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -117,7 +117,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 21
|
||||
"column": 28
|
||||
}
|
||||
},
|
||||
"name": "greeting",
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 2,
|
||||
"end": 7,
|
||||
"end": 17,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -72,7 +72,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7
|
||||
"column": 17
|
||||
}
|
||||
},
|
||||
"name": "props",
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
{
|
||||
"type": "RestElement",
|
||||
"start": 2,
|
||||
"end": 10,
|
||||
"end": 20,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -134,7 +134,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 10
|
||||
"column": 20
|
||||
}
|
||||
},
|
||||
"argument": {
|
||||
@@ -229,4 +229,4 @@
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 16,
|
||||
"end": 24,
|
||||
"end": 32,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -150,7 +150,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 24
|
||||
"column": 32
|
||||
}
|
||||
},
|
||||
"name": "rootPath",
|
||||
@@ -188,7 +188,7 @@
|
||||
{
|
||||
"type": "RestElement",
|
||||
"start": 34,
|
||||
"end": 49,
|
||||
"end": 64,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -196,7 +196,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 49
|
||||
"column": 64
|
||||
}
|
||||
},
|
||||
"argument": {
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 17,
|
||||
"end": 20,
|
||||
"end": 25,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -103,7 +103,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 20
|
||||
"column": 25
|
||||
}
|
||||
},
|
||||
"name": "foo",
|
||||
@@ -158,7 +158,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 27,
|
||||
"end": 30,
|
||||
"end": 35,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -166,7 +166,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 30
|
||||
"column": 35
|
||||
}
|
||||
},
|
||||
"name": "bar",
|
||||
@@ -244,4 +244,4 @@
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
{
|
||||
"type": "RestElement",
|
||||
"start": 2,
|
||||
"end": 9,
|
||||
"end": 24,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -71,7 +71,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 9
|
||||
"column": 24
|
||||
}
|
||||
},
|
||||
"argument": {
|
||||
@@ -194,4 +194,4 @@
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 13,
|
||||
"end": 14,
|
||||
"end": 25,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
@@ -163,7 +163,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 14
|
||||
"column": 25
|
||||
}
|
||||
},
|
||||
"name": "x",
|
||||
@@ -257,4 +257,4 @@
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
{
|
||||
"type": "File",
|
||||
"start": 0,
|
||||
"end": 0,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
}
|
||||
},
|
||||
"program": {
|
||||
"type": "Program",
|
||||
"start": 0,
|
||||
"end": 0,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
}
|
||||
},
|
||||
"sourceType": "module",
|
||||
"body": [],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
@@ -257,7 +257,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 33,
|
||||
"end": 34,
|
||||
"end": 42,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
@@ -265,7 +265,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 5
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"name": "x",
|
||||
@@ -392,7 +392,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 56,
|
||||
"end": 57,
|
||||
"end": 65,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
@@ -400,7 +400,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 5
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"name": "x",
|
||||
|
||||
@@ -257,7 +257,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 33,
|
||||
"end": 34,
|
||||
"end": 42,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 3,
|
||||
@@ -265,7 +265,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 5
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"name": "x",
|
||||
@@ -392,7 +392,7 @@
|
||||
{
|
||||
"type": "Identifier",
|
||||
"start": 56,
|
||||
"end": 57,
|
||||
"end": 65,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 4,
|
||||
@@ -400,7 +400,7 @@
|
||||
},
|
||||
"end": {
|
||||
"line": 4,
|
||||
"column": 5
|
||||
"column": 13
|
||||
}
|
||||
},
|
||||
"name": "x",
|
||||
@@ -527,4 +527,4 @@
|
||||
],
|
||||
"directives": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user