Skip to content

Commit a1d82fc

Browse files
authored
Remove some unnecessary code discovered by rollup (#51204)
1 parent 0481773 commit a1d82fc

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41414,18 +41414,6 @@ namespace ts {
4141441414
if (isGlobalAugmentation) {
4141541415
return;
4141641416
}
41417-
const symbol = getSymbolOfNode(node);
41418-
if (symbol) {
41419-
// module augmentations cannot introduce new names on the top level scope of the module
41420-
// this is done it two steps
41421-
// 1. quick check - if symbol for node is not merged - this is local symbol to this augmentation - report error
41422-
// 2. main check - report error if value declaration of the parent symbol is module augmentation)
41423-
let reportError = !(symbol.flags & SymbolFlags.Transient);
41424-
if (!reportError) {
41425-
// symbol should not originate in augmentation
41426-
reportError = !!symbol.parent?.declarations && isExternalModuleAugmentation(symbol.parent.declarations[0]);
41427-
}
41428-
}
4142941417
break;
4143041418
}
4143141419
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy