From 9e777306c7b53f304dee0a94635ce686b5f2fb8a Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 8 Apr 2016 13:36:18 -0700 Subject: [PATCH] Rename function --- src/services/services.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index cb062a0fc9f..940e7df3b2b 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -5624,7 +5624,7 @@ namespace ts { }; } - function getImportOrExportSpecifierPropertyNameSymbolSpecifier(symbol: Symbol, location: Node): ImportOrExportSpecifier { + function getImportOrExportSpecifierForPropertyNameSymbol(symbol: Symbol, location: Node): ImportOrExportSpecifier { if (symbol.flags & SymbolFlags.Alias) { const importOrExportSpecifier = forEach(symbol.declarations, declaration => (declaration.kind === SyntaxKind.ImportSpecifier || @@ -6124,7 +6124,7 @@ namespace ts { //// export {a as somethingElse} //// We want the *local* declaration of 'a' as declared in the import, //// *not* as declared within "mod" (or farther) - const importOrExportSpecifier = getImportOrExportSpecifierPropertyNameSymbolSpecifier(symbol, location); + const importOrExportSpecifier = getImportOrExportSpecifierForPropertyNameSymbol(symbol, location); if (importOrExportSpecifier || getDeclarationOfKind(symbol, SyntaxKind.ImportClause)) { result = result.concat(populateSearchSymbolSet( !importOrExportSpecifier || importOrExportSpecifier.kind === SyntaxKind.ImportSpecifier ? @@ -6255,7 +6255,7 @@ namespace ts { // If the reference symbol is an alias, check if what it is aliasing is one of the search // symbols but by looking up for related symbol of this alias so it can handle multiple level of indirectness. - const importOrExportSpecifier = getImportOrExportSpecifierPropertyNameSymbolSpecifier(referenceSymbol, referenceLocation); + const importOrExportSpecifier = getImportOrExportSpecifierForPropertyNameSymbol(referenceSymbol, referenceLocation); if (importOrExportSpecifier || getDeclarationOfKind(referenceSymbol, SyntaxKind.ImportClause)) { const aliasedSymbol = !importOrExportSpecifier || importOrExportSpecifier.kind === SyntaxKind.ImportSpecifier ? typeChecker.getAliasedSymbol(referenceSymbol) :