10 writes to Obsoleted
Microsoft.CodeAnalysis.NetAnalyzers (10)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (10)
544attribute.Obsoleted = null; 782attribute.Obsoleted = null; 1652diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1661diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1669diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1765copyTo.Obsoleted = (Version?)copyFrom.Obsoleted?.Clone(); 1887existing.Obsoleted = childAttribute.Obsoleted; 1954attributes.Obsoleted = childAttr.Obsoleted; 2186attributes.Obsoleted = version; 2193attributes.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; 1643if (attribute.Obsoleted != null) 1649if ((callSiteAttribute.Obsoleted == null || callSiteAttribute.Obsoleted > attribute.Obsoleted) && 1650(callSiteAttribute.UnsupportedFirst == null || callSiteAttribute.UnsupportedFirst > attribute.Obsoleted)) 1652diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1658(callSiteAttribute.UnsupportedFirst != null && callSiteAttribute.UnsupportedFirst > attribute.Obsoleted || 1659callSiteAttribute.Obsoleted != null && callSiteAttribute.Obsoleted > attribute.Obsoleted)) 1661diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1669diagnosticAttribute.Obsoleted = (Version)attribute.Obsoleted.Clone(); 1765copyTo.Obsoleted = (Version?)copyFrom.Obsoleted?.Clone(); 1881if (childAttribute.Obsoleted != null && 1882(childAttribute.Obsoleted < existing.UnsupportedFirst || 1884(existing.UnsupportedSecond == null || existing.UnsupportedSecond > childAttribute.Obsoleted)) && 1885(existing.Obsoleted == null || childAttribute.Obsoleted < existing.Obsoleted)) 1887existing.Obsoleted = childAttribute.Obsoleted; 1951childAttr.Obsoleted != null && 1952(attributes.Obsoleted == null || childAttr.Obsoleted < attributes.Obsoleted)) 1954attributes.Obsoleted = childAttr.Obsoleted; 2181if (attributes.Obsoleted != null) 2184if (attributes.Obsoleted > version)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Data.cs (1)
41SupportedSecond != null || UnsupportedSecond != null || Obsoleted != null;