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;
        }
 public override sealed object VisitThrowStatement(ThrowStatement throwStatement, object data)
 {
     this.BeginVisit(throwStatement);
     object result = this.TrackedVisitThrowStatement(throwStatement, data);
     this.EndVisit(throwStatement);
     return result;
 }
Exemplo n.º 4
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)
 {
     throw new global::System.NotImplementedException("ThrowStatement");
 }
Exemplo n.º 6
0
 void ThrowStatement(out Statement statement)
 {
     Expression expr = null;
     Expect(215);
     if (StartOf(24)) {
     Expr(out expr);
     }
     statement = new ThrowStatement(expr);
 }
 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;
 }