Skip to content

Centralize anonymous type-kind tag literal and use range slicing#722

Merged
tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:cleanup-anonymous-type-kind-tag
Jul 13, 2026
Merged

Centralize anonymous type-kind tag literal and use range slicing#722
tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:cleanup-anonymous-type-kind-tag

Conversation

@tannergooding

Copy link
Copy Markdown
Member

Centralizes the _e__ anonymous type-kind tag literal into a single AnonymousTypeKindTag const (next to the existing __Anonymous* consts) so the produce and consume sites share one definition rather than repeating the magic string across five sites. Also swaps the two adjacent Substring(1, tagIndex - 1) calls for range indexing ([1..tagIndex]).

No functional change -- generator output is byte-identical (3708 golden tests pass, build 0 warnings / 0 errors).

Note

This PR description was drafted by Copilot on my behalf.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@tannergooding
tannergooding merged commit 18dc8d5 into dotnet:main Jul 13, 2026
14 checks passed
@tannergooding
tannergooding deleted the cleanup-anonymous-type-kind-tag branch July 13, 2026 04:29
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.

1 participant