-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix reflect typeMembers to return all members #15033
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
Conversation
I've pushed a commit repairing Scaladoc tests |
500ce16
to
efc8081
Compare
Did not notice this commit and force pushed the fix I had. @pikinier20 is this the same fix that you did? |
Yes, it is. Sorry for messing up :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in Scaladoc are fine. However, I'm not a person who can approve changes in compiler API.
Note that the other fixes in the documentation are in #15034 |
efc8081
to
60f46a6
Compare
@@ -2619,13 +2619,15 @@ class QuotesImpl private (using val ctx: Context) extends Quotes, QuoteUnpickler | |||
case sym if sym.isType => sym.asType | |||
}.toList | |||
|
|||
def memberType(name: String): Symbol = typeMember(name) | |||
def typeMember(name: String): Symbol = | |||
def memberType(name: String): Symbol = | |||
self.unforcedDecls.find(sym => sym.name == name.toTypeName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this was present before, but any reason we use unforcedDecls here? That could also miss declarations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not belive there was a particular reason. Which method would you use instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ca79663
to
10289a9
Compare
Fixes #14902