Include typeParameter location in the arrow function expression (#126)
This commit is contained in:
committed by
Henry Zhu
parent
643d3f37a4
commit
f91da191a1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user