mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-19 22:07:42 -05:00
Re-add debug assert & fix indent
This commit is contained in:
@@ -2061,7 +2061,7 @@ module ts {
|
||||
text = text.substring(1, text.length - (isLast ? 1 : 2));
|
||||
|
||||
write('"' + escapeString(text) + '"');
|
||||
}
|
||||
}
|
||||
|
||||
function emitDownlevelTaggedTemplate(node: TaggedTemplateExpression) {
|
||||
var tempVariable = createTempVariable(node);
|
||||
@@ -2120,6 +2120,8 @@ module ts {
|
||||
return;
|
||||
}
|
||||
|
||||
Debug.assert(node.parent.kind !== SyntaxKind.TaggedTemplateExpression);
|
||||
|
||||
var emitOuterParens = isExpression(node.parent)
|
||||
&& templateNeedsParens(node, <Expression>node.parent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user