dotty.tools.dotc.tastyreflect.package.scala Maven / Gradle / Ivy
The newest version!
package dotty.tools.dotc
import dotty.tools.dotc.ast.Trees.{Tree, Untyped}
import dotty.tools.dotc.core.Contexts.Context
import dotty.tools.dotc.core.Symbols.Symbol
import dotty.tools.dotc.core.Types.Type
import dotty.tools.dotc.core.SymDenotations.SymDenotation
import scala.annotation.constructorOnly
import util.SourceFile
package object tastyreflect {
type PackageDefinition = PackageDefinitionImpl[Type]
/** Represents the symbol of a definition in tree form */
case class PackageDefinitionImpl[-T >: Untyped] private[tastyreflect] (sym: Symbol)(implicit @constructorOnly src: SourceFile) extends Tree[T] {
type ThisTree[-T >: Untyped] = PackageDefinitionImpl[T]
override def denot(implicit ctx: Context): SymDenotation = sym.denot
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy