Esempio n. 1
0
        public override BoundNode VisitBlock(BoundBlock node)
        {
            var newLocals     = RewriteLocals(node.Locals);
            var newStatements = VisitList(node.Statements);

            return(node.Update(newLocals, newStatements));
        }
        public override BoundNode VisitBlock(BoundBlock node)
        {
            var rewrittenLocals     = node.Locals.WhereAsArray(local => local.IsCompilerGenerated || local.Name == null || this.GetVariable(local.Name) == null);
            var rewrittenStatements = VisitList(node.Statements);

            return(node.Update(rewrittenLocals, rewrittenStatements));
        }
Esempio n. 3
0
 public override BoundNode VisitBlock(BoundBlock node)
 {
     var rewrittenLocals = node.Locals.WhereAsArray(local => local.IsCompilerGenerated || local.Name == null || this.GetVariable(local.Name) == null);
     var rewrittenLocalFunctions = node.LocalFunctions;
     var rewrittenStatements = VisitList(node.Statements);
     return node.Update(rewrittenLocals, rewrittenLocalFunctions, rewrittenStatements);
 }
Esempio n. 4
0
 public override BoundNode VisitBlock(BoundBlock node)
 {
     var newLocals = RewriteLocals(node.Locals);
     var newLocalFunctions = node.LocalFunctions;
     var newStatements = VisitList(node.Statements);
     return node.Update(newLocals, newLocalFunctions, newStatements);
 }