示例#1
0
 public virtual object VisitThrowStatement(ThrowNode throwStatement, object data)
 {
     stackMap.Push(throwStatement);
     if (throwStatement.ThrowExpression != null)
     {
         throwStatement.ThrowExpression.AcceptVisitor(this, data);
     }
     stackMap.Pop();
     return(null);
 }
示例#2
0
		private ThrowNode ParseThrow()										
		{
            ThrowNode node = new ThrowNode(curtok);
			Advance(); // advance over Throw

			if (curtok.ID != TokenID.Semi)
			{
				node.ThrowExpression = ParseExpression();
			}

			if (curtok.ID == TokenID.Semi)
				Advance();
			return node;
		}
        public virtual object VisitThrowStatement(ThrowNode throwStatement, object data)
        {
            stackMap.Push(throwStatement);
            if (throwStatement.ThrowExpression != null)
            {
             throwStatement.ThrowExpression.AcceptVisitor(this, data);
            }
            stackMap.Pop();
            return null;

        }