diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 46f1c353dd7..7462e381f23 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -74,7 +74,6 @@ namespace ts { getGlobalDiagnostics, getTypeOfSymbolAtLocation, getSymbolsOfParameterPropertyDeclaration, - getTypeOfSymbol, getDeclaredTypeOfSymbol, getPropertiesOfType, getPropertyOfType, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7bd2db13ba2..2db59acbaae 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2258,7 +2258,6 @@ namespace ts { export interface TypeChecker { getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type; - getTypeOfSymbol(symbol: Symbol): Type; getDeclaredTypeOfSymbol(symbol: Symbol): Type; getPropertiesOfType(type: Type): Symbol[]; getPropertyOfType(type: Type, propertyName: string): Symbol; diff --git a/src/services/utilities.ts b/src/services/utilities.ts index 98cf5e0adb8..a727d271022 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -1419,7 +1419,7 @@ namespace ts { function getInsertionForMemberSymbol(symbol: Symbol, enclosingDeclaration: ClassDeclaration, checker: TypeChecker, newlineChar: string): string { const name = symbol.getName(); - const type = checker.getTypeOfSymbol(symbol); + const type = checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration); const declarations = symbol.getDeclarations(); if (!(declarations && declarations.length)) { return "";