Include typeParameter location in the arrow function expression (#126)

This commit is contained in:
Daniel Tschinder
2016-09-16 01:08:33 +02:00
committed by Henry Zhu
parent 643d3f37a4
commit f91da191a1
3 changed files with 19 additions and 17 deletions

View File

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