public virtual object VisitDoLoopStatement(DoStatement doLoopStatement, object data) { stackMap.Push(doLoopStatement); doLoopStatement.Test.AcceptVisitor(this, data); doLoopStatement.Statements.AcceptVisitor(this, data); stackMap.Pop(); return(null); }
private DoStatement ParseDo() { DoStatement node = new DoStatement(curtok); Advance(); // advance over DO ParseBlock(node.Statements); AssertAndAdvance(TokenID.While); // advance over While AssertAndAdvance(TokenID.LParen); node.Test = ParseExpression(); AssertAndAdvance(TokenID.RParen); AssertAndAdvance(TokenID.Semi); // not optional on DO return node; }
public virtual object VisitDoLoopStatement(DoStatement doLoopStatement, object data) { stackMap.Push(doLoopStatement); doLoopStatement.Test.AcceptVisitor(this, data); doLoopStatement.Statements.AcceptVisitor(this, data); stackMap.Pop(); return null; }