
scala.reflect.internal.transform.PostErasure.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 SubScript extension of the Scala Programming Language
The newest version!
package scala.reflect
package internal
package transform
trait PostErasure {
val global: SymbolTable
import global._
object elimErasedValueType extends TypeMap {
def apply(tp: Type) = tp match {
case ConstantType(Constant(tp: Type)) => ConstantType(Constant(apply(tp)))
case ErasedValueType(_, underlying) => underlying
case _ => mapOver(tp)
}
}
def transformInfo(sym: Symbol, tp: Type) = elimErasedValueType(tp)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy