示例#1
0
 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);
 }
示例#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));
        }