unit-gen
unit-gen copied to clipboard
Refactor: TypedIns to template
In current design, we use toInstruction
to convert different TypedIns
to Instruction
, it's not working for IDE tools out AutoDev
interface TypedIns {
val type: InstructionBuilderType
/**
* Build final instruction.
*/
fun toInstruction(): Instruction
}