Skip to content

Commit a1d82fc

Browse files
authoredOct 17, 2022
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

-12
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)
Please sign in to comment.