public virtual object VisitThrowStatement(ThrowStatement throwStatement, object data) {
			throw new global::System.NotImplementedException("ThrowStatement");
		}
Esempio n. 2
0
		public virtual object VisitThrowStatement(ThrowStatement throwStatement, object data) {
			Debug.Assert((throwStatement != null));
			Debug.Assert((throwStatement.Expression != null));
			return throwStatement.Expression.AcceptVisitor(this, data);
		}
		public virtual object VisitThrowStatement(ThrowStatement throwStatement, object data) {
			Debug.Assert((throwStatement != null));
			Debug.Assert((throwStatement.Expression != null));
			nodeStack.Push(throwStatement.Expression);
			throwStatement.Expression.AcceptVisitor(this, data);
			throwStatement.Expression = ((Expression)(nodeStack.Pop()));
			return null;
		}
Esempio n. 4
0
	void ThrowStatement(out Statement statement) {
		Expression expr = null;
		Expect(215);
		if (StartOf(24)) {
			Expr(out expr);
		}
		statement = new ThrowStatement(expr);
	}
		public sealed override object VisitThrowStatement(ThrowStatement throwStatement, object data) {
			this.BeginVisit(throwStatement);
			object result = this.TrackedVisitThrowStatement(throwStatement, data);
			this.EndVisit(throwStatement);
			return result;
		}
		public virtual object TrackedVisitThrowStatement(ThrowStatement throwStatement, object data) {
			return base.VisitThrowStatement(throwStatement, data);
		}
		public override object VisitThrowStatement(ThrowStatement throwStatement, object data)
		{
			CodeThrowExceptionStatement throwStmt = new CodeThrowExceptionStatement((CodeExpression)throwStatement.Expression.AcceptVisitor(this, data));
			
			// Add Statement to Current Statement Collection
			AddStmt(throwStmt);
			
			return throwStmt;
		}