All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.reflect.internal.transform.PostErasure.scala Maven / Gradle / Ivy

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