예제 #1
0
 private static void WriteAssignmentExpression(BoundAssignmentExpression node, IndentedTextWriter writer)
 {
     writer.WriteIdentifier(node.Variable.Name);
     writer.WriteSpace();
     writer.WritePunctuation(SyntaxKind.AssignToken);
     writer.WriteSpace();
     node.Expression.WriteTo(writer);
 }
예제 #2
0
        protected virtual BoundExpression RewriteAssignmentExpression(BoundAssignmentExpression node)
        {
            var expression = RewriteExpression(node.Expression);

            if (expression == node.Expression)
            {
                return(node);
            }

            return(new BoundAssignmentExpression(node.Variable, expression));
        }