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

dotty.tools.scaladoc.tasty.PackageSupport.scala Maven / Gradle / Ivy

There is a newer version: 3.6.0-RC1-bin-20240917-6e852d2-NIGHTLY
Show 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)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy