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 spark-core Show documentation
Show all versions of spark-core Show documentation
Shaded version of Apache Spark 2.x.x for Presto
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