Beispiel #1
0
        private BoundPattern RewriteConstantPattern(BoundConstantPattern node)
        {
            var expr = this.RewriteExpression(node.Expression);

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

            return(new BoundConstantPattern(node.Syntax, expr));
        }
Beispiel #2
0
 private static void WriteConstantPattern(BoundConstantPattern node, IndentedTextWriter writer)
 {
     node.Expression.WriteTo(writer);
 }