scala.reflect.runtime.ReflectSetup.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-reflect Show documentation
Show all versions of scala-reflect Show documentation
Compiler for the Scala Programming Language
package scala.reflect
package runtime
import internal.{SomePhase, NoPhase, Phase, TreeGen}
/** A helper trait to initialize things that need to be set before JavaMirrors and other
* reflect specific traits are initialized */
private[runtime] trait ReflectSetup extends internal.SymbolTable {
override val phaseWithId: Array[Phase] = Array(NoPhase, SomePhase)
override val currentRunId = 1 // fake a run id so that it is different from NoRunId
phase = SomePhase // set to a phase different from NoPhase
}