Fix comment

This commit is contained in:
Yui T 2015-12-12 16:13:30 -08:00
parent d4ea6a0289
commit f138953d88
2 changed files with 7 additions and 3 deletions

View file

@ -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;

View file

@ -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 => {