appendToWithWarnings

fun appendToWithWarnings(builder: StringBuilder, operandTypes: Set<L2OperandType>, warningStyleChange: (Boolean) -> Unit)

Output this instruction to the given builder, invoking the given lambda with a boolean to turn warning style on or off, if tracked by the caller.

Parameters

builder

Where to write the description of this instruction.

operandTypes

Which L2OperandTypes to include.

warningStyleChange

A lambda that takes true to start the warning style at the current builder position, and false to end it. It must be invoked in (true, false) pairs.