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

C#: Use C'X fully-qualified-name format instead of C<,...,> #14589

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Oct 25, 2023

This PR changes our rendering of fully qualified names for unbound generics from the non-standard C<,...,> format, to the standard C`X format, where X is the number of type parameters. This is, of course, a breaking change, so instead of directly changing {has,get}QualifiedName to use the new format, I have instead deprecated {has,get}QualifiedName, and introduced new {has,get}FullyQualifiedName predicates that use the new format.

The existing getName predicate has been adjusted, so it also uses the new format instead of the old format, here it was not natural to deprecate the predicate and come up with a new name.

@hvitved hvitved changed the title C#: Use `CX FQN format instead of C<,...,>` C#: Use `CX` FQN format instead of C<,...,>` Oct 25, 2023
@github-actions github-actions bot added the C# label Oct 25, 2023
@hvitved hvitved changed the title C#: Use `CX` FQN format instead of C<,...,>` C#: Use ` CX ` FQN format instead of C<,...,>` Oct 25, 2023
@hvitved hvitved changed the title C#: Use ` CX ` FQN format instead of C<,...,>` C#: Use C'X FQN format instead of C<,...,> Oct 25, 2023
@hvitved hvitved changed the title C#: Use C'X FQN format instead of C<,...,> C#: Use C'X fully-qualified-name format instead of C<,...,> Oct 25, 2023
@hvitved hvitved force-pushed the csharp/fqn-backticks branch 3 times, most recently from 8694747 to 9fd38b6 Compare October 25, 2023 13:28
@hvitved hvitved force-pushed the csharp/fqn-backticks branch from f75d903 to ccaa530 Compare November 9, 2023 10:44
Copy link
Contributor

github-actions bot commented Nov 9, 2023

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. A recent commit removed the previously reported differences.

@hvitved hvitved force-pushed the csharp/fqn-backticks branch from bcf4d7a to 57ec094 Compare November 10, 2023 07:47
@hvitved hvitved marked this pull request as ready for review November 10, 2023 09:14
@hvitved hvitved requested a review from a team as a code owner November 10, 2023 09:14
Copy link
Contributor

@tamasvajk tamasvajk left a comment

Choose a reason for hiding this comment

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

Looks good to me. Mostly based on that CI is green and there's no MaD change in the PR.

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

Great work @hvitved !

@hvitved hvitved merged commit 9f0b073 into github:main Nov 10, 2023
18 checks passed
@hvitved hvitved deleted the csharp/fqn-backticks branch November 10, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants