Пример #1
0
 /// <inheritdoc/>
 protected override void HandleDoWhile(CodePostTestIterationStatement obj, Context ctx)
 {
     ctx.Writer.WriteLine("do");
     ctx.Writer.IndentAndWriteLine("{", ctx);
     ctx.Indent();
     CSharpUtils.HandleStatementCollection(obj.Statements, ctx, false);
     ctx.Unindent();
     ctx.Writer.IndentAndWrite("} while (", ctx);
     ctx.HandlerProvider.ExpressionHandler.Handle(obj.TestExpression, ctx);
     ctx.Writer.Write(");");
 }
Пример #2
0
 /// <inheritdoc />
 protected override void HandleDoWhile(CodePostTestIterationStatement obj, Context ctx)
 {
     VisualBasicUtils.BeginBlock(BlockType.Do, ctx, false);
     ctx.Writer.WriteLine("Do");
     ctx.Indent();
     VisualBasicUtils.HandleStatementCollection(obj.Statements, ctx);
     ctx.Unindent();
     ctx.Writer.IndentAndWrite("Loop While ", ctx);
     ctx.HandlerProvider.ExpressionHandler.Handle(obj.TestExpression, ctx);
     VisualBasicUtils.EndBlock(ctx, false, false);
 }
 private bool HandleDynamic(CodePostTestIterationStatement obj, Context ctx)
 {
     return(HandleIfTrue(() => { HandleDoWhile(obj, ctx); }, obj, ctx, CanHandleDoWhile, false));
 }
 /// <inheritdoc cref="ICodeObjectHandler{T}.Handle"/>
 protected abstract void HandleDoWhile(CodePostTestIterationStatement obj, Context ctx);