diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 31665734167..a2338c5ba5b 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -429,7 +429,13 @@ namespace ts { // return undefined if we can't find a symbol. } - function getSymbolOfParameterPropertyDeclaration(parameter: ParameterDeclaration, parameterName: string): Symbol[] { + /** + * Get symbols that represent parameter-property-declaration as parameter and as property declaration + * @param parameter a parameterDeclaration node + * @param parameterName a name of the parameter to get the symbols for. + * @return a tuple of two symbols + */ + function getSymbolOfParameterPropertyDeclaration(parameter: ParameterDeclaration, parameterName: string): [Symbol, Symbol] { const constructoDeclaration = parameter.parent; const classDeclaration = parameter.parent.parent; diff --git a/src/services/services.ts b/src/services/services.ts index 4f2af5c35c4..6728c0d5ebc 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -6045,8 +6045,6 @@ namespace ts { }); } - // If the reference - // Unwrap symbols to get to the root (e.g. transient symbols as a result of widening) // Or a union property, use its underlying unioned symbols return forEach(typeChecker.getRootSymbols(referenceSymbol), rootSymbol => {