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