Addressed CR feedback.

This commit is contained in:
Daniel Rosenwasser 2016-02-10 15:19:27 -08:00
parent ba392403cc
commit f944d3e997
2 changed files with 2 additions and 4 deletions

View file

@ -7110,9 +7110,7 @@ namespace ts {
switch (expr.kind) {
case SyntaxKind.Identifier:
case SyntaxKind.PropertyAccessExpression:
case SyntaxKind.QualifiedName:
// TODO (drosen): Why a qualified name?
return getSymbolOfEntityNameOrPropertyAccessExpression(expr as Node as (EntityName | PropertyAccessExpression));
return getSymbolOfEntityNameOrPropertyAccessExpression(expr as (Identifier | PropertyAccessExpression));
}
}

View file

@ -1937,7 +1937,7 @@ namespace ts {
return finishNode(node);
}
function parseThisTypePredicate(lhs: Identifier | ThisTypeNode): TypePredicateNode {
function parseThisTypePredicate(lhs: ThisTypeNode): TypePredicateNode {
nextToken();
const node = createNode(SyntaxKind.TypePredicate, lhs.pos) as TypePredicateNode;
node.parameterName = lhs;