示例#1
0
 public static BoundStatement Rewrite(BoundStatement node, MethodSymbol containingMethod, Compilation compilation, bool generateDebugInfo, out bool sawLambdas)
 {
     Debug.Assert(node != null);
     var rewriter = new ControlFlowRewriter(containingMethod, compilation, generateDebugInfo);
     var result = (BoundStatement)rewriter.Visit(node);
     sawLambdas = rewriter.sawLambdas;
     return result;
 }
示例#2
0
        public static BoundStatement Rewrite(BoundStatement node, MethodSymbol containingMethod, Compilation compilation, bool generateDebugInfo, out bool sawLambdas)
        {
            Debug.Assert(node != null);
            var rewriter = new ControlFlowRewriter(containingMethod, compilation, generateDebugInfo);
            var result   = (BoundStatement)rewriter.Visit(node);

            sawLambdas = rewriter.sawLambdas;
            return(result);
        }