From 8d4e9064d0d40883c825fa7180d076b1d8c4fabb Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 19 Nov 2014 22:11:17 -0800 Subject: [PATCH] Addressed CR feedback. --- src/compiler/emitter.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index 06031c9b84a..f6ccc4e6d59 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -869,14 +869,13 @@ module ts { function templateNeedsParens(template: TemplateExpression, parent: Expression) { switch (parent.kind) { - case SyntaxKind.TaggedTemplateExpression: - Debug.fail("Path should be unreachable; tagged templates not supported pre-ES6!"); - //return (parent).tag === template; case SyntaxKind.CallExpression: case SyntaxKind.NewExpression: return (parent).func === template; case SyntaxKind.ParenExpression: return false; + case SyntaxKind.TaggedTemplateExpression: + Debug.fail("Path should be unreachable; tagged templates not supported pre-ES6."); default: return comparePrecedenceToBinaryPlus(parent) !== Comparison.LessThan; }