/** * Generate the <code>END</code> part of an anonymous procedural block. */ static final void end(Context<?> ctx) { switch (ctx.family()) { case FIREBIRD: case MARIADB: { ctx.formatIndentEnd().formatSeparator() .visit(K_END); break; } case POSTGRES: { ctx.formatIndentEnd().formatSeparator() .visit(K_END); if (decrement(ctx.data(), DATA_BLOCK_NESTING)) ctx.sql(" $$"); break; } } }