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