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)); }
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); }
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); }