Пример #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));
        }
Пример #2
0
 private static void WriteConstantPattern(BoundConstantPattern node, IndentedTextWriter writer)
 {
     node.Expression.WriteTo(writer);
 }