1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-09 17:44:48 +09:00

Address feedback on DiagnosticId changes (#105096)

See feedback in https://github.com/dotnet/runtime/pull/105049
This commit is contained in:
Sven Boemer 2024-07-19 09:33:34 -07:00 committed by GitHub
parent 6068519289
commit 6aa28625e3
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -187,7 +187,7 @@ namespace ILLink.Shared
_unused_DynamicallyAccessedMembersOnTypeReferencesCompilerGeneratedMemberOnBase = 2120,
RedundantSuppression = 2121,
TypeNameIsNotAssemblyQualified = 2122,
_EndTrimAnalysisWarningsSentinel = 2123,
_EndTrimAnalysisWarningsSentinel,
// Single-file diagnostic ids.
AvoidAssemblyLocationInSingleFile = 3000,
@ -204,7 +204,7 @@ namespace ILLink.Shared
GenericRecursionCycle = 3054,
CorrectnessOfAbstractDelegatesCannotBeGuaranteed = 3055,
RequiresDynamicCodeOnStaticConstructor = 3056,
_EndAotAnalysisWarningsSentinel = 3057,
_EndAotAnalysisWarningsSentinel,
// Feature guard diagnostic ids.
ReturnValueDoesNotMatchFeatureGuards = 4000,
@ -229,9 +229,9 @@ namespace ILLink.Shared
2103 => MessageSubCategory.TrimAnalysis,
2106 => MessageSubCategory.TrimAnalysis,
2107 => MessageSubCategory.TrimAnalysis,
>= 2109 and <= (int) DiagnosticId._EndTrimAnalysisWarningsSentinel => MessageSubCategory.TrimAnalysis,
>= 2109 and < (int) DiagnosticId._EndTrimAnalysisWarningsSentinel => MessageSubCategory.TrimAnalysis,
>= 3050 and <= 3052 => MessageSubCategory.AotAnalysis,
>= 3054 and <= (int) DiagnosticId._EndAotAnalysisWarningsSentinel => MessageSubCategory.AotAnalysis,
>= 3054 and < (int) DiagnosticId._EndAotAnalysisWarningsSentinel => MessageSubCategory.AotAnalysis,
_ => MessageSubCategory.None,
};