Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaladoc: improve refined function types rendering #20333

Merged
merged 1 commit into from
May 6, 2024

Conversation

Florian3k
Copy link
Contributor

Fixes #19967
Improves rendering of refined function types - unneeded parameters names are omitted when possible

@Florian3k Florian3k force-pushed the fix-19967 branch 2 times, most recently from 9d23b58 to 72ef729 Compare May 5, 2024 12:11
@Florian3k Florian3k marked this pull request as ready for review May 6, 2024 07:39
@Florian3k Florian3k requested a review from jchyb May 6, 2024 07:39
Copy link
Contributor

@jchyb jchyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +407 to +408
private def isContextualMethod(using Quotes)(mt: reflect.MethodType) =
mt.asInstanceOf[dotty.tools.dotc.core.Types.MethodType].isContextualMethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a curiosity I will mention we've just added a MethodTypeKind to quotes api for that (but I think using the compiler directly here is better, and avoiding MethodTypeKind should allow us to use this scaladoc for LTS api).

@Florian3k Florian3k merged commit 55025c2 into scala:main May 6, 2024
19 checks passed
WojciechMazur pushed a commit to WojciechMazur/dotty that referenced this pull request May 6, 2024
Fixes scala#19967
Improves rendering of refined function types - unneeded parameters names
are omitted when possible
@Kordyjan Kordyjan added this to the 3.5.0 milestone May 10, 2024
WojciechMazur pushed a commit that referenced this pull request Jul 6, 2024
Fixes #19967
Improves rendering of refined function types - unneeded parameters names
are omitted when possible
[Cherry-picked 55025c2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scaladoc issue with capture checking
3 participants