8 instantiations of ObsoleteAttributeData
Microsoft.CodeAnalysis (8)
MetadataReader\PEModule.cs (3)
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\CommonAttributeData.cs (3)
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\ObsoleteAttributeData.cs (2)
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);
60 references to ObsoleteAttributeData
Microsoft.CodeAnalysis (54)
Diagnostic\CustomObsoleteDiagnosticInfo.cs (2)
13
internal
ObsoleteAttributeData
Data { get; }
15
internal CustomObsoleteDiagnosticInfo(CommonMessageProvider messageProvider, int errorCode,
ObsoleteAttributeData
data, params object[] arguments)
MetadataReader\PEModule.cs (15)
113
private static readonly AttributeValueExtractor<
ObsoleteAttributeData
?> s_attributeDeprecatedDataExtractor = CrackDeprecatedAttributeData;
1201
internal
ObsoleteAttributeData
TryGetDeprecatedOrExperimentalOrObsoleteAttribute(
1218
ObsoleteAttributeData
obsoleteData = TryExtractObsoleteDataFromAttribute(info, decoder);
1267
internal
ObsoleteAttributeData
? TryDecodeExperimentalAttributeData(EntityHandle handle, IAttributeNamedArgumentDecoder decoder)
1273
private
ObsoleteAttributeData
? TryExtractExperimentalDataFromAttribute(AttributeInfo attributeInfo, IAttributeNamedArgumentDecoder decoder)
1322
if (urlFormat is null && name ==
ObsoleteAttributeData
.UrlFormatPropertyName)
1326
else if (message is null && name ==
ObsoleteAttributeData
.MessagePropertyName)
1748
private
ObsoleteAttributeData
? TryExtractObsoleteDataFromAttribute(AttributeInfo attributeInfo, IAttributeNamedArgumentDecoder decoder)
1815
private
ObsoleteAttributeData
TryExtractDeprecatedDataFromAttribute(AttributeInfo attributeInfo)
1825
return TryExtractValueFromAttribute(attributeInfo.Handle, out
var
obsoleteData, s_attributeDeprecatedDataExtractor) ?
1834
private
ObsoleteAttributeData
TryExtractWindowsExperimentalDataFromAttribute(AttributeInfo attributeInfo)
1841
return
ObsoleteAttributeData
.WindowsExperimental;
2156
if (diagnosticId is null && name ==
ObsoleteAttributeData
.DiagnosticIdPropertyName)
2160
else if (urlFormat is null && name ==
ObsoleteAttributeData
.UrlFormatPropertyName)
2173
private static bool CrackDeprecatedAttributeData([NotNullWhen(true)] out
ObsoleteAttributeData
? value, ref BlobReader sig)
Symbols\Attributes\CommonAssemblyWellKnownAttributeData.cs (3)
449
private
ObsoleteAttributeData
_experimentalAttributeData =
ObsoleteAttributeData
.Uninitialized;
450
public
ObsoleteAttributeData
ExperimentalAttributeData
Symbols\Attributes\CommonAttributeData.cs (14)
255
internal
ObsoleteAttributeData
DecodeObsoleteAttribute(ObsoleteAttributeKind kind)
272
internal
ObsoleteAttributeData
DecodeExperimentalAttribute()
288
if (urlFormat is null && name ==
ObsoleteAttributeData
.UrlFormatPropertyName && IsStringProperty(
ObsoleteAttributeData
.UrlFormatPropertyName))
293
if (message is null && name ==
ObsoleteAttributeData
.MessagePropertyName && IsStringProperty(
ObsoleteAttributeData
.MessagePropertyName))
310
private
ObsoleteAttributeData
DecodeObsoleteAttribute()
337
if (diagnosticId is null && name ==
ObsoleteAttributeData
.DiagnosticIdPropertyName && IsStringProperty(
ObsoleteAttributeData
.DiagnosticIdPropertyName))
341
else if (urlFormat is null && name ==
ObsoleteAttributeData
.UrlFormatPropertyName && IsStringProperty(
ObsoleteAttributeData
.UrlFormatPropertyName))
367
private
ObsoleteAttributeData
DecodeDeprecatedAttribute()
392
private
ObsoleteAttributeData
DecodeWindowsExperimentalAttribute()
396
return
ObsoleteAttributeData
.WindowsExperimental;
Symbols\Attributes\CommonEventEarlyWellKnownAttributeData.cs (3)
21
private
ObsoleteAttributeData
_obsoleteAttributeData =
ObsoleteAttributeData
.Uninitialized;
22
public
ObsoleteAttributeData
ObsoleteAttributeData
Symbols\Attributes\CommonFieldEarlyWellKnownAttributeData.cs (3)
21
private
ObsoleteAttributeData
_obsoleteAttributeData =
ObsoleteAttributeData
.Uninitialized;
22
public
ObsoleteAttributeData
ObsoleteAttributeData
Symbols\Attributes\CommonMethodEarlyWellKnownAttributeData.cs (3)
37
private
ObsoleteAttributeData
_obsoleteAttributeData =
ObsoleteAttributeData
.Uninitialized;
38
public
ObsoleteAttributeData
? ObsoleteAttributeData
Symbols\Attributes\CommonModuleWellKnownAttributeData.cs (3)
69
private
ObsoleteAttributeData
_experimentalAttributeData =
ObsoleteAttributeData
.Uninitialized;
70
public
ObsoleteAttributeData
ExperimentalAttributeData
Symbols\Attributes\CommonPropertyEarlyWellKnownAttributeData.cs (3)
16
private
ObsoleteAttributeData
_obsoleteAttributeData =
ObsoleteAttributeData
.Uninitialized;
18
public
ObsoleteAttributeData
? ObsoleteAttributeData
Symbols\Attributes\CommonTypeEarlyWellKnownAttributeData.cs (3)
75
private
ObsoleteAttributeData
_obsoleteAttributeData =
ObsoleteAttributeData
.Uninitialized;
76
public
ObsoleteAttributeData
ObsoleteAttributeData
Symbols\Attributes\ObsoleteAttributeData.cs (2)
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);
Microsoft.CodeAnalysis.CSharp (6)
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
329
var
experimentalData = PrimaryModule.Module.TryDecodeExperimentalAttributeData(Assembly.Handle, new MetadataDecoder(PrimaryModule));
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
877
var
experimentalData = _module.TryDecodeExperimentalAttributeData(Token, new MetadataDecoder(this));
Symbols\ObsoleteAttributeHelpers.cs (1)
46
var
obsoleteAttributeData = containingModule.Module.TryGetDeprecatedOrExperimentalOrObsoleteAttribute(token, new MetadataDecoder(containingModule), ignoreByRefLikeMarker, ignoreRequiredMemberMarker);
Symbols\Source\SourceAssemblySymbol.cs (1)
2587
var
obsoleteData = attribute.DecodeExperimentalAttribute();
Symbols\Source\SourceModuleSymbol.cs (1)
707
/// This property returns <see cref="Microsoft.CodeAnalysis.
ObsoleteAttributeData
.Uninitialized"/> if attribute arguments haven't been decoded yet.
Symbols\Symbol.cs (1)
1451
/// This property returns <see cref="Microsoft.CodeAnalysis.
ObsoleteAttributeData
.Uninitialized"/> if attribute arguments haven't been decoded yet.