Fix linting

This commit is contained in:
Yui T 2015-12-12 15:53:04 -08:00
parent b00fa42dea
commit 94c3d27f41
2 changed files with 4 additions and 4 deletions

View file

@ -428,14 +428,14 @@ namespace ts {
}
// return undefined if we can't find a symbol.
}
function getSymbolOfParameterPropertyDeclaration(parameter: ParameterDeclaration, parameterName: string): Symbol[] {
const constructoDeclaration = parameter.parent;
const classDeclaration = parameter.parent.parent;
const parameterSymbol = getSymbol(constructoDeclaration.locals, parameterName, SymbolFlags.Value);
const propertySymbol = getSymbol(classDeclaration.symbol.members, parameterName, SymbolFlags.Value);
return parameterSymbol && propertySymbol ? [parameterSymbol, propertySymbol] : undefined;
}

View file

@ -2741,7 +2741,7 @@ namespace ts {
}
}
}
export function isPropertyParameterDeclaration(node: ParameterDeclaration): boolean {
// If this is a property-parameter, then also declare the property symbol into the
// containing class.