mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Use jsxFragmentFactory entity name for factory name lookup from checking fragments (#39475)
This commit is contained in:
1 parent
ececf3b0a7
commit
ef9affe2f6
9 files changed
+150
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user