mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
Use 'symbolsToArray' to avoid filtering.
This commit is contained in:
parent
f70e772acc
commit
d1fa506db6
@ -75,9 +75,7 @@ module ts {
|
||||
getAliasedSymbol: resolveAlias,
|
||||
getEmitResolver,
|
||||
getExportsOfImportDeclaration,
|
||||
getExportsOfModule(moduleSymbol: Symbol): Symbol[] {
|
||||
return mapToArray(getExportsOfModule(moduleSymbol));
|
||||
}
|
||||
getExportsOfModule: moduleSymbol => symbolsToArray(getExportsOfModule(moduleSymbol)),
|
||||
};
|
||||
|
||||
let unknownSymbol = createSymbol(SymbolFlags.Property | SymbolFlags.Transient, "unknown");
|
||||
|
||||
@ -2535,10 +2535,9 @@ module ts {
|
||||
|
||||
if (symbol && symbol.flags & SymbolFlags.HasExports) {
|
||||
// Extract module or enum members
|
||||
let exportedMembers = typeInfoResolver.getExportsOfModule(symbol);
|
||||
forEach(exportedMembers, symbol => {
|
||||
if (!(symbol.flags & SymbolFlags.ExportStar)
|
||||
&& typeInfoResolver.isValidPropertyAccess(<PropertyAccessExpression>(node.parent), symbol.name)) {
|
||||
let exportedSymbols = typeInfoResolver.getExportsOfModule(symbol);
|
||||
forEach(exportedSymbols, symbol => {
|
||||
if (typeInfoResolver.isValidPropertyAccess(<PropertyAccessExpression>(node.parent), symbol.name)) {
|
||||
symbols.push(symbol);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user