File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -23263,7 +23263,9 @@ namespace ts {
23263
23263
23264
23264
function checkExportSpecifier(node: ExportSpecifier) {
23265
23265
checkAliasSymbol(node);
23266
- collectLinkedAliases(node.propertyName || node.name, /*setVisibility*/ true); // Collect linked aliases to set visibility links
23266
+ if (compilerOptions.declaration) {
23267
+ collectLinkedAliases(node.propertyName || node.name, /*setVisibility*/ true); // Collect linked aliases to set visibility links
23268
+ }
23267
23269
if (!(<ExportDeclaration>node.parent.parent).moduleSpecifier) {
23268
23270
const exportedName = node.propertyName || node.name;
23269
23271
// find immediate value referenced by exported name (SymbolFlags.Alias is set so we don't chase down aliases)
@@ -23301,7 +23303,10 @@ namespace ts {
23301
23303
}
23302
23304
if (node.expression.kind === SyntaxKind.Identifier) {
23303
23305
markExportAsReferenced(node);
23304
- collectLinkedAliases(node.expression as Identifier, /*setVisibility*/ true); // Sets visibility flags on refernced nodes
23306
+
23307
+ if (compilerOptions.declaration) {
23308
+ collectLinkedAliases(node.expression as Identifier, /*setVisibility*/ true); // Sets visibility flags on refernced nodes
23309
+ }
23305
23310
}
23306
23311
else {
23307
23312
checkExpressionCached(node.expression);
Original file line number Diff line number Diff line change @@ -1250,7 +1250,7 @@ namespace ts {
1250
1250
}
1251
1251
1252
1252
function bindingNameContainsVisibleBindingElement ( node : BindingName ) : boolean {
1253
- return ! ! node && isBindingPattern ( node ) && some ( node . elements , elem => ! isOmittedExpression ( elem ) && ( resolver . isDeclarationVisible ( elem ) || bindingNameContainsVisibleBindingElement ( elem . name ) ) ) ;
1253
+ return ! ! node && isBindingPattern ( node ) && some ( node . elements , elem => ! isOmittedExpression ( elem ) && isVariableDeclarationVisible ( elem ) ) ;
1254
1254
}
1255
1255
1256
1256
function isVariableDeclarationVisible ( node : VariableDeclaration | BindingElement ) {
You can’t perform that action at this time.
0 commit comments