10 writes to Obsoleted
Microsoft.CodeAnalysis.NetAnalyzers (10)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (10)
544attribute.Obsoleted = null; 782attribute.Obsoleted = null; 1679diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1688diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1696diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1792copyTo.Obsoleted = (Version?)copyFrom.Obsoleted?.Clone(); 1916existing.Obsoleted = childAttribute.Obsoleted; 1983attributes.Obsoleted = childAttr.Obsoleted; 2215attributes.Obsoleted = version; 2222attributes.Obsoleted = version;
34 references to Obsoleted
Microsoft.CodeAnalysis.NetAnalyzers (34)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (33)
541if (attribute.Obsoleted != null && 542attribute.Obsoleted.IsGreaterThanOrEqualTo(info.Version)) 1105if (pAttribute.Obsoleted != null) 1107if (IsEmptyVersion(pAttribute.Obsoleted)) // Do not need to add the version part if it is 0.0 1120obsoletedBuilder.Add(AppendMessageAndUrl(pAttribute, GetFormattedString(PlatformCompatibilityVersionAndLater, pName, pAttribute.Obsoleted))); 1262var version = attribute.Obsoleted; 1670if (attribute.Obsoleted != null) 1676if ((callSiteAttribute.Obsoleted == null || callSiteAttribute.Obsoleted > attribute.Obsoleted) && 1677(callSiteAttribute.UnsupportedFirst == null || callSiteAttribute.UnsupportedFirst > attribute.Obsoleted)) 1679diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1685(callSiteAttribute.UnsupportedFirst != null && callSiteAttribute.UnsupportedFirst > attribute.Obsoleted || 1686callSiteAttribute.Obsoleted != null && callSiteAttribute.Obsoleted > attribute.Obsoleted)) 1688diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1696diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1792copyTo.Obsoleted = (Version?)copyFrom.Obsoleted?.Clone(); 1910if (childAttribute.Obsoleted != null && 1911(childAttribute.Obsoleted < existing.UnsupportedFirst || 1913(existing.UnsupportedSecond == null || existing.UnsupportedSecond > childAttribute.Obsoleted)) && 1914(existing.Obsoleted == null || childAttribute.Obsoleted < existing.Obsoleted)) 1916existing.Obsoleted = childAttribute.Obsoleted; 1980childAttr.Obsoleted != null && 1981(attributes.Obsoleted == null || childAttr.Obsoleted < attributes.Obsoleted)) 1983attributes.Obsoleted = childAttr.Obsoleted; 2210if (attributes.Obsoleted != null) 2213if (attributes.Obsoleted > version)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Data.cs (1)
41SupportedSecond != null || UnsupportedSecond != null || Obsoleted != null;