public virtual object VisitThrowStatement(ThrowNode throwStatement, object data) { stackMap.Push(throwStatement); if (throwStatement.ThrowExpression != null) { throwStatement.ThrowExpression.AcceptVisitor(this, data); } stackMap.Pop(); return(null); }
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; }