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.3-RC1-bin-20241114-6a7d5d3-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