//----------------------------------------------------------------------------------------------------------------------------------------------------- public override void AcceptVisitor(StatementVisitor visitor) { visitor.VisitBlockStatement(this); foreach (var statement in this.Statements) { statement.AcceptVisitor(visitor); } }
public override T AcceptVisitor <T, C>(StatementVisitor <T, C> visitor, C context) { return(visitor.VisitBlockStatement(this, context)); }