Skip to content

Add letter number among valid identifiers in class name - #13868

Merged
Jakub Jareš (nohwnd) merged 4 commits into
microsoft:mainfrom
nohwnd:add-letter-number-to-managed-name
Jan 6, 2025
Merged

Jakub Jareš (nohwnd) merged 4 commits into
microsoft:mainfrom
nohwnd:add-letter-number-to-managed-name

Conversation

@nohwnd

Copy link
Copy Markdown
Member

Description

IsLetterOrDigit is not considering LetterNumbers to be a digit (as defined here in remarks: https://learn.microsoft.com/en-us/dotnet/api/system.char.isletterordigit?view=net-9.0 )

But spec considers them as valid, this mismatch was causing the identifier to be wrapped in '.

Related issue

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2285943

ghost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Any possibility to backport to 17.12.1 or shall we wait 17.13?

Comment thread test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/TestClasses.cs Outdated
Jakub Jareš and others added 3 commits January 6, 2025 13:58
…es/ManagedNameHelper.Reflection.cs

Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
…sses.cs

Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
…NameUtilities/ManagedNameGeneratorTests.cs

Co-authored-by: Amaury Levé <amaury.leve@gmail.com>
@nohwnd

ghost commented Jan 6, 2025

Copy link
Copy Markdown
Member Author

Linked issue mentions that this is not functional issue, it just impacts the view. Do you have a reason why backporting would be worth it?

@Evangelink

ghost commented Jan 6, 2025

Copy link
Copy Markdown
Member

The link wasn't opening for me (DNS issue) so I didn't see this was only a "view" issue. Thanks for the comment, please disregard my request/suggestion.

@nohwnd
Jakub Jareš (nohwnd) merged commit 778c004 into microsoft:main Jan 6, 2025
This was referenced Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants