Skip to content

Commit

Permalink
Remove some unnecessary code discovered by rollup (#51204)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Oct 17, 2022
1 parent 0481773 commit a1d82fc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/compiler/checker.ts
Expand Up @@ -41414,18 +41414,6 @@ namespace ts {
if (isGlobalAugmentation) {
return;
}
const symbol = getSymbolOfNode(node);
if (symbol) {
// module augmentations cannot introduce new names on the top level scope of the module
// this is done it two steps
// 1. quick check - if symbol for node is not merged - this is local symbol to this augmentation - report error
// 2. main check - report error if value declaration of the parent symbol is module augmentation)
let reportError = !(symbol.flags & SymbolFlags.Transient);
if (!reportError) {
// symbol should not originate in augmentation
reportError = !!symbol.parent?.declarations && isExternalModuleAugmentation(symbol.parent.declarations[0]);
}
}
break;
}
}
Expand Down

0 comments on commit a1d82fc

Please sign in to comment.