All files / TRANSPILE/3-Render/codegen/types IPlannedForever.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17                                 
/**
 * An ADR-068 `forever` loop: a body and nothing else.
 *
 * It has no controlling expression by construction -- that is the point of the
 * form, and it is why the MISRA C:2012 Rule 14.3 carve-out applies to the
 * `for (;;)` it lowers to: there is no invariant condition to flag.
 *
 * A record of one thunk rather than a bare thunk, so every generator in the
 * control-flow table takes the same kind of argument and a reader does not
 * have to check which one is the exception.
 */
interface IPlannedForever {
  readonly renderBody: () => string;
}
 
export default IPlannedForever;