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

Move merging of partial members to an earlier phase of members construction. #76871

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AlekseyTs
Copy link
Contributor

Fixes #76651.
Fixes #75002.
Related to #76842.
Related to #76870.

@AlekseyTs
Copy link
Contributor Author

@RikkiGibson, @cston, @dotnet/roslyn-compiler Please review

@AlekseyTs
Copy link
Contributor Author

@jjonescz, FYI

@RikkiGibson RikkiGibson self-assigned this Jan 23, 2025
@jcouv jcouv self-assigned this Jan 23, 2025
}
}

void mergePartialMethods(ArrayBuilder<Symbol> nonTypeMembers, SourceOrdinaryMethodSymbol currentMethod, SourceOrdinaryMethodSymbol prevMethod, BindingDiagnosticBag diagnostics)
Copy link
Member

@jcouv jcouv Jan 24, 2025

Choose a reason for hiding this comment

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

mergePartialMethods

static? #Resolved

Copy link
Contributor Author

@AlekseyTs AlekseyTs Jan 24, 2025

Choose a reason for hiding this comment

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

static?

I do not think I changed anything that affects ability to place the modifier on the method. Therefore, I won't try adding it, unless there is other feedback to take care of.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Scratch that, it looks like I removed DuplicateMembersByNameIfCached call

Copy link
Member

Choose a reason for hiding this comment

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

It looks like the containing method MergePartialMembers could be marked static too

}
}

void mergePartialProperties(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol currentProperty, SourcePropertySymbol prevProperty, BindingDiagnosticBag diagnostics)
void mergePartialProperties(ArrayBuilder<Symbol> nonTypeMembers, SourcePropertySymbol currentProperty, SourcePropertySymbol prevProperty, BindingDiagnosticBag diagnostics)
Copy link
Member

@jcouv jcouv Jan 24, 2025

Choose a reason for hiding this comment

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

mergePartialProperties

static? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

static?

Same response

Copy link
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

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

LGTM Thanks (iteration 2)

@AlekseyTs
Copy link
Contributor Author

@RikkiGibson, @cston, @dotnet/roslyn-compiler For the second review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
3 participants