Skip to content

Commit f944d3e

Browse files
Addressed CR feedback.
1 parent ba39240 commit f944d3e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7110,9 +7110,7 @@ namespace ts {
71107110
switch (expr.kind) {
71117111
case SyntaxKind.Identifier:
71127112
case SyntaxKind.PropertyAccessExpression:
7113-
case SyntaxKind.QualifiedName:
7114-
// TODO (drosen): Why a qualified name?
7115-
return getSymbolOfEntityNameOrPropertyAccessExpression(expr as Node as (EntityName | PropertyAccessExpression));
7113+
return getSymbolOfEntityNameOrPropertyAccessExpression(expr as (Identifier | PropertyAccessExpression));
71167114
}
71177115
}
71187116

src/compiler/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ namespace ts {
19371937
return finishNode(node);
19381938
}
19391939

1940-
function parseThisTypePredicate(lhs: Identifier | ThisTypeNode): TypePredicateNode {
1940+
function parseThisTypePredicate(lhs: ThisTypeNode): TypePredicateNode {
19411941
nextToken();
19421942
const node = createNode(SyntaxKind.TypePredicate, lhs.pos) as TypePredicateNode;
19431943
node.parameterName = lhs;

0 commit comments

Comments
 (0)