コード例 #1
0
 public override sealed object VisitEraseStatement(EraseStatement eraseStatement, object data)
 {
     this.BeginVisit(eraseStatement);
     object result = this.TrackedVisitEraseStatement(eraseStatement, data);
     this.EndVisit(eraseStatement);
     return result;
 }
コード例 #2
0
 public virtual object TrackedVisitEraseStatement(EraseStatement eraseStatement, object data)
 {
     return base.VisitEraseStatement(eraseStatement, data);
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public virtual object VisitEraseStatement(EraseStatement eraseStatement, object data)
 {
     throw new global::System.NotImplementedException("EraseStatement");
 }
コード例 #5
0
ファイル: Parser.cs プロジェクト: richardschneider/ILSpy
        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;
        }
コード例 #6
0
 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;
 }