Skip to content

Commit

Permalink
Fix intrinsic types documentation when there is no scala package on f…
Browse files Browse the repository at this point in the history
…iles to document path
  • Loading branch information
BarkingBad committed Jul 28, 2021
1 parent 2260aa2 commit 5c0a409
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ case class ScaladocTastyInspector()(using ctx: DocContext) extends DocTastyInspe
}
}
topLevels ++= intrinsicClassDefs
val scalaPckg = defn.ScalaPackageVal.asInstanceOf[parser.qctx.reflect.Symbol]
val name = scalaPckg.fullName
given parser.qctx.type = parser.qctx
topLevels += "scala" -> Member(name, scalaPckg.dri, Kind.Package)
topLevels += mergeAnyRefAliasAndObject(parser)

def result(): (List[Member], Option[Comment]) =
Expand Down

0 comments on commit 5c0a409

Please sign in to comment.