ForcedRecompilationToken

izumi.distage.plugins.ForcedRecompilationToken
See theForcedRecompilationToken companion object
final abstract class ForcedRecompilationToken[T]

This macro allows distage's compile-time checks to cooperate with Scala's incremental compilation: it forces recompilation of the macro that performs compile-time plan checking every time a PluginDef's body changes.

It does that by generating a new unique type for each compiler session and assigning it to the class that inherits PluginDef. The "change of super type" of a plugin forces recompilation of all code that references it, and specifically of the code generated by izumi.distage.framework.PlanCheckMacro.

This allows compile-time checking macro to re-run on relevant changes and provide rapid feedback during development.

Attributes

See also
Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
In this article