Add back ranges property (#363)

* Add back ranges property

* Correctly adjust range in flow plugin

* Make it an option
This commit is contained in:
Henry Zhu
2017-03-01 10:57:06 -05:00
committed by GitHub
parent aec4beff0c
commit f1e2cca767
10 changed files with 504 additions and 12 deletions

View File

@@ -1381,8 +1381,7 @@ export default function (instance) {
arrowExpression = inner.apply(this, args);
arrowExpression.typeParameters = typeParameters;
arrowExpression.start = typeParameters.start;
arrowExpression.loc.start = typeParameters.loc.start;
this.resetStartLocationFromNode(arrowExpression, typeParameters);
} catch (err) {
throw jsxError || err;
}