public override sealed object VisitEraseStatement(EraseStatement eraseStatement, object data) { this.BeginVisit(eraseStatement); object result = this.TrackedVisitEraseStatement(eraseStatement, data); this.EndVisit(eraseStatement); return result; }
public virtual object TrackedVisitEraseStatement(EraseStatement eraseStatement, object data) { return base.VisitEraseStatement(eraseStatement, data); }
public virtual object VisitEraseStatement(EraseStatement eraseStatement, object data) { Debug.Assert((eraseStatement != null)); Debug.Assert((eraseStatement.Expressions != null)); foreach (Expression o in eraseStatement.Expressions) { Debug.Assert(o != null); o.AcceptVisitor(this, data); } return null; }
public virtual object VisitEraseStatement(EraseStatement eraseStatement, object data) { throw new global::System.NotImplementedException("EraseStatement"); }
void EraseStatement(out Statement statement) { Expression expr = null; Expect(117); Expr(out expr); EraseStatement eraseStatement = new EraseStatement(); if (expr != null) { SafeAdd(eraseStatement, eraseStatement.Expressions, expr);} while (la.kind == 22) { Get(); Expr(out expr); if (expr != null) { SafeAdd(eraseStatement, eraseStatement.Expressions, expr); } } statement = eraseStatement; }
public virtual object VisitEraseStatement(EraseStatement eraseStatement, object data) { Debug.Assert((eraseStatement != null)); Debug.Assert((eraseStatement.Expressions != null)); for (int i = 0; i < eraseStatement.Expressions.Count; i++) { Expression o = eraseStatement.Expressions[i]; Debug.Assert(o != null); nodeStack.Push(o); o.AcceptVisitor(this, data); o = (Expression)nodeStack.Pop(); if (o == null) eraseStatement.Expressions.RemoveAt(i--); else eraseStatement.Expressions[i] = o; } return null; }