Skip to content

Conversation

@hvitved
Copy link
Contributor

@hvitved hvitved commented Aug 4, 2025

No description provided.

@github-actions github-actions bot added the C# label Aug 4, 2025
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Aug 4, 2025
@hvitved hvitved marked this pull request as ready for review August 4, 2025 10:01
@hvitved hvitved requested a review from a team as a code owner August 4, 2025 10:01
@hvitved hvitved requested review from aschackmull and Copilot August 4, 2025 10:01
Copy link
Contributor

Copilot AI left a 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

Comment on lines 204 to 208
this.hasMethod(c)
or
this.hasMember(c.(Accessor).getDeclaration())
or
c = this.getAConstructor()
Copy link
Contributor

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.

Copy link
Contributor Author

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.

aschackmull
aschackmull previously approved these changes Aug 4, 2025
Copy link
Contributor

@aschackmull aschackmull left a 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.

@hvitved hvitved merged commit 6e90823 into github:main Aug 5, 2025
22 checks passed
@hvitved hvitved deleted the csharp/has-callable-constructor branch August 5, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C# no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants