summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/runtime/ReflectSetup.scala
blob: 6e28fc852018b680068c77a536f5d7fea9a53ae6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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
}