///////////////////////////////////////////////////////////////// // While // ///////////////////////////////////////////////////////////////// /// <summary> /// A while statement emulated with a for loop. /// </summary> /// <param name="testExpression"></param> /// <returns></returns> public WhileEmuCodeBody <TThis> WhileEmu(CodeExpression testExpression) { var whileStmt = new WhileEmuCodeBody <TThis>(testExpression, ThisConverter(this)); AddStatement(IteratorCodeBody <TThis, WhileEmuCodeBody <TThis> > .GetIteratorStatement(whileStmt)); return(whileStmt); }
public static CodeIterationStatement GetIteratorStatement(IteratorCodeBody <TParent, TThis> iteratorBody) { return(iteratorBody._iteratorStatement); }