InsnsBuilder

class InsnsBuilder(val span: Span)

A builder for Insn lists. Allows for a more readable syntax when building instructions.

Constructors

Link copied to clipboard
constructor(span: Span)

Properties

Link copied to clipboard
val span: Span

The Span of the instructions being built.

Functions

Link copied to clipboard

Converts the builder to a list of instructions.

Link copied to clipboard
operator fun Insn.unaryPlus()

Adds an instruction to the list.

operator fun FullInsn.unaryPlus()

Adds an instruction-Span pair to the list.

operator fun List<FullInsn>.unaryPlus()

Adds a list of instructions to the list.