summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ReflectGlobal.scala
blob: 3132a9987d55b068570fc43ccbf193aa246df662 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package scala.tools.nsc

import reporters.Reporter

/** A version of Global that uses reflection to get class
 *  infos, instead of reading class or source files.
 */
class ReflectGlobal(currentSettings: Settings, reporter: Reporter)
  extends Global(currentSettings, reporter) with reflect.runtime.SymbolTable {

  override def transformedType(sym: Symbol) =
    erasure.transformInfo(sym,
      uncurry.transformInfo(sym,
        refChecks.transformInfo(sym, sym.info)))

}