Clean up illink compat suppressions by making internal types non-public #123048
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Removed ~40 API compatibility suppressions from ILLink by making internal implementation types non-public. Many types were unnecessarily public despite not being exposed in the reference assembly.
Changed visibility to
internalfor:AssemblyDefinitionExtensions,BannedApiExtensions,CustomAttributeArgumentExtensions,MemberReferenceExtensions,MethodDefinitionExtensions,MethodReferenceExtensions,TypeDefinitionExtensionsBCL,ConsoleLogger,Driver,TargetRuntimeVersion,FeatureSettings,InternalErrorException,LinkerFatalErrorExceptionAddBypassNGenStep,BodySubstituterStep,CheckSuppressionsDispatcher,CheckSuppressionsStep,CleanStep,CodeRewriterStep,DiscoverOperatorsHandler,DiscoverSerializationHandler,LinkAttributesStep,MarkExportedTypesTarget,OutputStep,OutputWarningSuppressions,ProcessLinkerXmlStepBase,ProcessReferencesStep,ProcessWarningsStep,ReflectionBlockedStep,RegenerateGuidStep,RemoveResourcesStep,RemoveSecurity,ResolveFromXmlStep,RootAssemblyInput,SealerStep,SweepStep,UnreachableBlocksOptimizer,ValidateVirtualMethodAnnotationsStepTypes remain public when:
LinkContext,AnnotationStore,MessageOrigin,MessageContainer, base step interfaces)AttributeInfo,AssemblyResolver,EmbeddedXmlInfo,ProcessLinkerXmlBase, parser types)Customer Impact
None. Internal API cleanup only.
Regression
No - cleanup of existing suppressions.
Testing
Build verification of illink tools.
Risk
Low - purely visibility changes to internal implementation types not exposed in ref assembly.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.