From b866c331873761012fb80bcdc1a4020a2329ee6d Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Wed, 28 Jul 2021 14:51:19 +0200 Subject: [PATCH] Fix intrinsic types documentation when there is no scala package on files to document path --- scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala b/scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala index 12b1c013e4fd..0fcad5a20f5f 100644 --- a/scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala +++ b/scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala @@ -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]) =