Skip to content

Commit e43e5c3

Browse files
Removed unnecessary case; substitution expressions only occur in TemplateSpans.
1 parent b65a422 commit e43e5c3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4978,8 +4978,6 @@ module ts {
49784978
return getContextualTypeForElementExpression(node);
49794979
case SyntaxKind.ConditionalExpression:
49804980
return getContextualTypeForConditionalOperand(node);
4981-
case SyntaxKind.TemplateExpression:
4982-
return getContextualTypeForSubstitutionExpression(<TemplateExpression>parent.parent, node);
49834981
case SyntaxKind.TemplateSpan:
49844982
Debug.assert(parent.parent.kind === SyntaxKind.TemplateExpression);
49854983
return getContextualTypeForSubstitutionExpression(<TemplateExpression>parent.parent, node);

0 commit comments

Comments
 (0)