Merge pull request #57 from danez/fix-arrow-location

Fix arrow param locations with flow types
This commit is contained in:
Sebastian McKenzie
2016-08-16 15:06:19 +01:00
committed by GitHub
12 changed files with 47 additions and 74 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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": []
}
}
}

View File

@@ -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": {

View File

@@ -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": []
}
}
}

View File

@@ -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": []
}
}
}

View File

@@ -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": []
}
}
}

View File

@@ -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": []
}
}

View File

@@ -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",

View File

@@ -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": []
}
}
}