Пример #1
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;
		}
		public virtual object VisitEraseStatement(EraseStatement eraseStatement, object data) {
			throw new global::System.NotImplementedException("EraseStatement");
		}
Пример #3
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;
		}
Пример #4
0
	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;
	}
Пример #5
0
		public virtual object TrackedVisitEraseStatement(EraseStatement eraseStatement, object data) {
			return base.VisitEraseStatement(eraseStatement, data);
		}
Пример #6
0
		public sealed override object VisitEraseStatement(EraseStatement eraseStatement, object data) {
			this.BeginVisit(eraseStatement);
			object result = this.TrackedVisitEraseStatement(eraseStatement, data);
			this.EndVisit(eraseStatement);
			return result;
		}