APIUtils
object APIUtils
Utilities to deal with xsbti.api.
Utilities to deal with xsbti.api.
Mostly comes from https://github.com/sbt/zinc/blob/c46643f3e68d7d4f270bf318e3f150f5a59c0aab/internal/zinc-apiinfo/src/main/scala/xsbt/api/APIUtil.scala
Value members
Concrete methods
Registers a dummy class for sbt's incremental compilation.
Registers a dummy class for sbt's incremental compilation.
If a compiler phase creates a new named (module) class/trait after the phase
ExtractAPI
, it must register that class for sbt's incremental compilation
on its own, lest crashes happen. In theory, the full API of the class needs
to be constructed, but if the class is never accessed by Scala source code,
a dummy empty class can be registered instead, using this method.