Use jsxFragmentFactory entity name for factory name lookup from checking fragments (#39475)

This commit is contained in:
Wesley Wigham
2020-07-14 17:25:45 -07:00
committed by GitHub
parent ececf3b0a7
commit ef9affe2f6
9 changed files with 150 additions and 0 deletions

View File

@@ -968,6 +968,11 @@ namespace ts {
return file.localJsxFragmentNamespace = getFirstIdentifier(file.localJsxFragmentFactory).escapedText;
}
}
const entity = getJsxFragmentFactoryEntity(location);
if (entity) {
file.localJsxFragmentFactory = entity;
return file.localJsxFragmentNamespace = getFirstIdentifier(entity).escapedText;
}
}
else {
if (file.localJsxNamespace) {