-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Rename ValueType-specific identifiers to reflect dual usage for ValueType and Attribute types #121610
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
Conversation
- Renamed ValueTypeMethodHashtable to GetFieldMethodHashtable - Renamed _valueTypeMethodHashtable to _getFieldMethodHashtable - Renamed ValueTypeGetFieldHelperMethodOverride to GetFieldHelperMethodOverride - Renamed files: - CompilerTypeSystemContext.ValueTypeMethods.cs → CompilerTypeSystemContext.GetFieldMethodOverrides.cs - ValueTypeGetFieldHelperMethodOverride.cs → GetFieldHelperMethodOverride.cs - ValueTypeGetFieldHelperMethodOverride.Sorting.cs → GetFieldHelperMethodOverride.Sorting.cs - Updated project file references - Updated all usages across the codebase Co-authored-by: MichalStrehovsky <[email protected]>
src/coreclr/tools/Common/TypeSystem/IL/Stubs/GetFieldHelperMethodOverride.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR performs a comprehensive refactoring to rename ValueType-specific identifiers that are now used for both ValueType and Attribute types. The renaming improves code clarity by reflecting the actual dual usage of these methods and classes.
- Renamed classes from ValueType-specific names to more generic GetField-based names
- Renamed source files to match the new class names
- Updated all usage sites and project file references
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| ILCompiler.Compiler.csproj | Updated compile includes for renamed source files |
| ObjectDataInterner.cs | Updated type reference from ValueTypeGetFieldHelperMethodOverride to GetFieldHelperMethodOverride |
| NoMetadataBlockingPolicy.cs | Updated reference to GetFieldHelperMethodOverride.MetadataName |
| EETypeNode.cs | Updated reference to GetFieldHelperMethodOverride.MetadataName in vtable emission logic |
| CompilerTypeSystemContext.GetFieldMethodOverrides.cs | Renamed inner class and field from ValueType-specific names to generic names |
| GetFieldHelperMethodOverride.cs | Renamed class and updated documentation to reflect dual usage |
| GetFieldHelperMethodOverride.Sorting.cs | Updated partial class declaration and type cast |
|
/ba-g timeout in unrelated leg |
CompilerTypeSystemContext.ValueTypeMethods.csoriginally injected__GetFieldHelperonly into value types but was later extended to also handle attribute types. The naming remained ValueType-specific, creating confusion.Renamed classes:
ValueTypeMethodHashtable→GetFieldMethodHashtableValueTypeGetFieldHelperMethodOverride→GetFieldHelperMethodOverrideRenamed files:
CompilerTypeSystemContext.ValueTypeMethods.cs→CompilerTypeSystemContext.GetFieldMethodOverrides.csValueTypeGetFieldHelperMethodOverride.cs→GetFieldHelperMethodOverride.csValueTypeGetFieldHelperMethodOverride.Sorting.cs→GetFieldHelperMethodOverride.Sorting.csUpdated references:
EETypeNode.cs,NoMetadataBlockingPolicy.cs,ObjectDataInterner.csOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.