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

This commit is contained in:
Wesley Wigham authored and GitHub committed 2020-07-14 17:25:45 -07:00
1 parent ececf3b0a7
commit ef9affe2f6
9 files changed
+150

No files matched your search

+5
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) {