Skip to content

Conversation

@edgarfgp
Copy link
Contributor

This addresses a review comment from Don in #13839

@edgarfgp edgarfgp requested a review from a team as a code owner July 26, 2023 14:57
@psfinaki psfinaki changed the title Update GetCSharpStyleIndexedExtensionMembersForTyconRef to avoid code dupilcation Update GetCSharpStyleIndexedExtensionMembersForTyconRef to avoid code duplication Jul 26, 2023
/// Get the info for all the .NET-style extension members listed as static members in the type.
let private GetCSharpStyleIndexedExtensionMembersForTyconRef (amap: Import.ImportMap) m (tcrefOfStaticClass: TyconRef) =
let g = amap.g
let pri = NextExtensionMethodPriority()
Copy link
Member

Choose a reason for hiding this comment

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

@edgarfgp Was there any reason to raise the priority for each type, even if it doesn't contain any extension members? Not that it makes a lot of difference, but the numbers are quite big now when debugging 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was to reuse pri info in both places. But as you pointed it might not be the right thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants