operator -> operatorToken.kind

This commit is contained in:
Ivo Gabe de Wolff
2015-02-24 07:13:38 +01:00
parent 964ed7f0fd
commit 904b5204c8

View File

@@ -2257,7 +2257,7 @@ module ts {
forEach((<TemplateExpression>node.template).templateSpans, templateSpan => {
write(", ");
var needsParens = templateSpan.expression.kind === SyntaxKind.BinaryExpression
&& (<BinaryExpression>templateSpan.expression).operator === SyntaxKind.CommaToken;
&& (<BinaryExpression>templateSpan.expression).operatorToken.kind === SyntaxKind.CommaToken;
emitParenthesizedIf(templateSpan.expression, needsParens);
});
}