compile

abstract fun compile(code: String, cpFiles: List<File>, guardLane: GuardLane, evalId: Int, abandoned: BooleanSupplier): Any

Compile a snippet to an opaque handle. The handle is a masking-only type, so it is only ever passed back to execute.

Return

an opaque compiled-script handle for execute

Parameters

code

the snippet source

cpFiles

the compile classpath (game cp + mods + JiJ libs + mojmap symbols)

guardLane

the target lane's scriptguard to instrument the snippet against, or null for the off-tick lane (no watchdog, no guard instrumentation)

evalId

the kill id that fires THIS eval's woven check

abandoned

true once nothing will read the result; the compile then stops at its next checkpoint, throwing java.util.concurrent.CancellationException