dotty.tools.scaladoc.tasty.PackageSupport.scala Maven / Gradle / Ivy
The newest version!
package dotty.tools.scaladoc
package tasty
import scala.jdk.CollectionConverters._
import SymOps._
trait PackageSupport:
self: TastyParser =>
import qctx.reflect._
private given qctx.type = qctx
def parsePackage(pck: PackageClause): (String, Member) =
val name = pck.symbol.fullName
(name, Member(name, "", pck.symbol.dri, Kind.Package))
def parsePackageObject(pckObj: ClassDef): (String, Member) =
pckObj.symbol.packageName -> parseClasslike(pckObj).withKind(Kind.Package)