private static void WriteAssignmentExpression(BoundAssignmentExpression node, IndentedTextWriter writer) { writer.WriteIdentifier(node.Variable.Name); writer.WriteWhiteSpace(); writer.WritePunctuation(SyntaxKind.EqualsToken); writer.WriteWhiteSpace(); node.Expression.WriteTo(writer); }
protected virtual BoundExpression RewriteAssignmentExpression(BoundAssignmentExpression node) { BoundExpression expression = RewriteExpression(node.Expression); if (expression == node.Expression) { return(node); } return(new BoundAssignmentExpression(node.Variable, expression)); }