appendToWithWarnings

open fun appendToWithWarnings(instruction: L2Instruction, desiredTypes: Set<L2OperandType>, builder: StringBuilder, warningStyleChange: (Boolean) -> Unit)

Produce a sensible textual rendition of the specified L2Instruction.

Parameters

instruction

The L2Instruction.

desiredTypes

The L2OperandTypes of L2Operands to be included in generic renditions. Customized renditions may not honor these types.

builder

The StringBuilder to which the rendition should be written.

warningStyleChange

A mechanism to turn on and off a warning style, which the caller may listen to, to track regions of the builder to highlight in its own warning style. This must be invoked in (true, false) pairs.