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 b866c33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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,9 @@ case class ScaladocTastyInspector()(using ctx: DocContext) extends DocTastyInspe
}
}
topLevels ++= intrinsicClassDefs
val scalaPckg = defn.ScalaPackageVal.asInstanceOf[parser.qctx.reflect.Symbol]
given parser.qctx.type = parser.qctx
topLevels += "scala" -> Member(scalaPckg.fullName, scalaPckg.dri, Kind.Package)
topLevels += mergeAnyRefAliasAndObject(parser)

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

0 comments on commit b866c33

Please sign in to comment.