Exemplo n.º 1
0
		public virtual object VisitReDimStatement(ReDimStatement reDimStatement, object data) {
			Debug.Assert((reDimStatement != null));
			Debug.Assert((reDimStatement.ReDimClauses != null));
			foreach (InvocationExpression o in reDimStatement.ReDimClauses) {
				Debug.Assert(o != null);
				o.AcceptVisitor(this, data);
			}
			return null;
		}
		public virtual object VisitReDimStatement(ReDimStatement reDimStatement, object data) {
			throw new global::System.NotImplementedException("ReDimStatement");
		}
Exemplo n.º 3
0
		public virtual object VisitReDimStatement(ReDimStatement reDimStatement, object data) {
			Debug.Assert((reDimStatement != null));
			Debug.Assert((reDimStatement.ReDimClauses != null));
			for (int i = 0; i < reDimStatement.ReDimClauses.Count; i++) {
				InvocationExpression o = reDimStatement.ReDimClauses[i];
				Debug.Assert(o != null);
				nodeStack.Push(o);
				o.AcceptVisitor(this, data);
				o = (InvocationExpression)nodeStack.Pop();
				if (o == null)
					reDimStatement.ReDimClauses.RemoveAt(i--);
				else
					reDimStatement.ReDimClauses[i] = o;
			}
			return null;
		}
Exemplo n.º 4
0
	void ReDimStatement(out Statement statement) {
		Expression expr = null;
		Expect(191);
		bool isPreserve = false;
		if (la.kind == 184) {
			Expect(184);
			isPreserve = true;
		}
		ReDimClause(out expr);
		ReDimStatement reDimStatement = new ReDimStatement(isPreserve);
			statement = reDimStatement;
			SafeAdd(reDimStatement, reDimStatement.ReDimClauses, expr as InvocationExpression);

		while (la.kind == 22) {
			Get();
			ReDimClause(out expr);
			SafeAdd(reDimStatement, reDimStatement.ReDimClauses, expr as InvocationExpression);
		}
	}
Exemplo n.º 5
0
		public sealed override object VisitReDimStatement(ReDimStatement reDimStatement, object data) {
			this.BeginVisit(reDimStatement);
			object result = this.TrackedVisitReDimStatement(reDimStatement, data);
			this.EndVisit(reDimStatement);
			return result;
		}
Exemplo n.º 6
0
		public virtual object TrackedVisitReDimStatement(ReDimStatement reDimStatement, object data) {
			return base.VisitReDimStatement(reDimStatement, data);
		}