27 references to ObsoleteAttributeKind
Microsoft.CodeAnalysis (27)
MetadataReader\PEModule.cs (13)
1200/// <remarks>Should be kept in sync with <see cref="IsMoreImportantObsoleteKind(ObsoleteAttributeKind, ObsoleteAttributeKind)"/></remarks> 1252internal static bool IsMoreImportantObsoleteKind(ObsoleteAttributeKind firstKind, ObsoleteAttributeKind secondKind) 1256static int getPriority(ObsoleteAttributeKind kind) => kind switch 1258ObsoleteAttributeKind.Deprecated => 0, 1259ObsoleteAttributeKind.Obsolete => 1, 1260ObsoleteAttributeKind.WindowsExperimental => 2, 1261ObsoleteAttributeKind.Experimental => 3, 1262ObsoleteAttributeKind.Uninitialized => 4, 1298return new ObsoleteAttributeData(ObsoleteAttributeKind.Experimental, message: null, isError: false, diagnosticId, urlFormat); 1780return new ObsoleteAttributeData(ObsoleteAttributeKind.Obsolete, message, isError, diagnosticId, urlFormat); 2173value = new ObsoleteAttributeData(ObsoleteAttributeKind.Deprecated, args.StringValue, args.IntValue == 1, diagnosticId: null, urlFormat: null);
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (1)
462Debug.Assert(value.Kind == ObsoleteAttributeKind.Experimental);
Symbols\Attributes\CommonAttributeData.cs (8)
255internal ObsoleteAttributeData DecodeObsoleteAttribute(ObsoleteAttributeKind kind) 259case ObsoleteAttributeKind.Obsolete: 261case ObsoleteAttributeKind.Deprecated: 263case ObsoleteAttributeKind.WindowsExperimental: 265case ObsoleteAttributeKind.Experimental: 297return new ObsoleteAttributeData(ObsoleteAttributeKind.Experimental, message: null, isError: false, diagnosticId, urlFormat); 345return new ObsoleteAttributeData(ObsoleteAttributeKind.Obsolete, message, isError, diagnosticId, urlFormat); 379return new ObsoleteAttributeData(ObsoleteAttributeKind.Deprecated, message, isError, diagnosticId: null, urlFormat: null);
Symbols\Attributes\CommonModuleWellKnownAttributeData.cs (1)
82Debug.Assert(value.Kind == ObsoleteAttributeKind.Experimental);
Symbols\Attributes\ObsoleteAttributeData.cs (4)
24public static readonly ObsoleteAttributeData Uninitialized = new ObsoleteAttributeData(ObsoleteAttributeKind.Uninitialized, message: null, isError: false, diagnosticId: null, urlFormat: null); 25public static readonly ObsoleteAttributeData WindowsExperimental = new ObsoleteAttributeData(ObsoleteAttributeKind.WindowsExperimental, message: null, isError: false, diagnosticId: null, urlFormat: null); 30public ObsoleteAttributeData(ObsoleteAttributeKind kind, string? message, bool isError, string? diagnosticId, string? urlFormat) 39public readonly ObsoleteAttributeKind Kind;