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>
1252
internal static bool IsMoreImportantObsoleteKind(
ObsoleteAttributeKind
firstKind,
ObsoleteAttributeKind
secondKind)
1256
static int getPriority(
ObsoleteAttributeKind
kind) => kind switch
1258
ObsoleteAttributeKind
.Deprecated => 0,
1259
ObsoleteAttributeKind
.Obsolete => 1,
1260
ObsoleteAttributeKind
.WindowsExperimental => 2,
1261
ObsoleteAttributeKind
.Experimental => 3,
1262
ObsoleteAttributeKind
.Uninitialized => 4,
1298
return new ObsoleteAttributeData(
ObsoleteAttributeKind
.Experimental, message: message, isError: false, diagnosticId, urlFormat);
1785
return new ObsoleteAttributeData(
ObsoleteAttributeKind
.Obsolete, message, isError, diagnosticId, urlFormat);
2178
value = new ObsoleteAttributeData(
ObsoleteAttributeKind
.Deprecated, args.StringValue, args.IntValue == 1, diagnosticId: null, urlFormat: null);
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (1)
462
Debug.Assert(value.Kind ==
ObsoleteAttributeKind
.Experimental);
Symbols\Attributes\CommonAttributeData.cs (8)
255
internal ObsoleteAttributeData DecodeObsoleteAttribute(
ObsoleteAttributeKind
kind)
259
case
ObsoleteAttributeKind
.Obsolete:
261
case
ObsoleteAttributeKind
.Deprecated:
263
case
ObsoleteAttributeKind
.WindowsExperimental:
265
case
ObsoleteAttributeKind
.Experimental:
304
return new ObsoleteAttributeData(
ObsoleteAttributeKind
.Experimental, message: message, isError: false, diagnosticId, urlFormat);
352
return new ObsoleteAttributeData(
ObsoleteAttributeKind
.Obsolete, message, isError, diagnosticId, urlFormat);
386
return new ObsoleteAttributeData(
ObsoleteAttributeKind
.Deprecated, message, isError, diagnosticId: null, urlFormat: null);
Symbols\Attributes\CommonModuleWellKnownAttributeData.cs (1)
82
Debug.Assert(value.Kind ==
ObsoleteAttributeKind
.Experimental);
Symbols\Attributes\ObsoleteAttributeData.cs (4)
24
public static readonly ObsoleteAttributeData Uninitialized = new ObsoleteAttributeData(
ObsoleteAttributeKind
.Uninitialized, message: null, isError: false, diagnosticId: null, urlFormat: null);
25
public static readonly ObsoleteAttributeData WindowsExperimental = new ObsoleteAttributeData(
ObsoleteAttributeKind
.WindowsExperimental, message: null, isError: false, diagnosticId: null, urlFormat: null);
31
public ObsoleteAttributeData(
ObsoleteAttributeKind
kind, string? message, bool isError, string? diagnosticId, string? urlFormat)
40
public readonly
ObsoleteAttributeKind
Kind;