scala / scala3

The Scala 3 compiler, also known as Dotty.
https://dotty.epfl.ch
Apache License 2.0
5.88k stars 1.06k forks source link

publish sources of synthetic classes and types in -sources.jar artefacts #20073

Closed unkarjedy closed 4 months ago

unkarjedy commented 7 months ago

Similar to https://github.com/scala/bug/issues/12958 but for Scala 3 synthetic classes.

Those classes are already published for docs (examples: AnyKind, Matchable) It would be nice to publish in sources to be able to see their description in the IDE

Related: https://youtrack.jetbrains.com/issue/SCL-22350 https://youtrack.jetbrains.com/issue/SCL-22167

Full list of classes

unkarjedy commented 7 months ago

Related question. Should Scala 3 repo duplicate ScalaDoc for Scala 2 synthetic classes? Scala 3 repo: https://github.com/scala/scala3/blob/release-3.4.1/compiler/src/dotty/tools/dotc/core/Definitions.scala#L2446 Scala 2 repo: https://github.com/scala/scala/tree/2.13.x/src/library-aux/scala

unkarjedy commented 7 months ago

Also, it seems like ContextFunctionN classes could be published for Scala 3 in the same way it's done for ProductN, FunctionN and TupleN classes in Scala 2