File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -466,9 +466,7 @@ namespace ts {
466466 // other kinds of value declarations take precedence over modules
467467 target.valueDeclaration = source.valueDeclaration;
468468 }
469- forEach(source.declarations, node => {
470- target.declarations.push(node);
471- });
469+ addRange(target.declarations, source.declarations);
472470 if (source.members) {
473471 if (!target.members) target.members = createMap<Symbol>();
474472 mergeSymbolTable(target.members, source.members);
@@ -1100,7 +1098,7 @@ namespace ts {
11001098 }
11011099
11021100 function getDeclarationOfAliasSymbol(symbol: Symbol): Declaration | undefined {
1103- return forEach (symbol.declarations, d => isAliasSymbolDeclaration(d) ? d : undefined );
1101+ return find<Declaration> (symbol.declarations, isAliasSymbolDeclaration);
11041102 }
11051103
11061104 function getTargetOfImportEqualsDeclaration(node: ImportEqualsDeclaration): Symbol {
You can’t perform that action at this time.
0 commit comments