Exemple #1
0
 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);
 }
Exemple #2
0
        protected virtual BoundExpression RewriteAssignmentExpression(BoundAssignmentExpression node)
        {
            BoundExpression expression = RewriteExpression(node.Expression);

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

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