-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C#: Include constructors in ValueOrRefType.hasCallable
#20158
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR extends the hasCallable
predicate in the ValueOrRefType
class to include constructors as callable members.
- Adds constructors to the set of callables returned by
hasCallable
this.hasMethod(c) | ||
or | ||
this.hasMember(c.(Accessor).getDeclaration()) | ||
or | ||
c = this.getAConstructor() |
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.
Alternatively replace hasMethod
in the first line of the predicate with hasMember
- I think that's equivalent.
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.
Yeah, good point, that is simpler.
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.
A minor comment - take it or leave it. LGTM.
554386d
to
361ef0f
Compare
No description provided.