mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
operator -> operatorToken.kind
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user