16 writes to UnsupportedSecond
Microsoft.CodeAnalysis.NetAnalyzers (16)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (14)
511attribute.UnsupportedSecond = null; 525attribute.UnsupportedSecond = null; 538attribute.UnsupportedSecond = null; 570attribute.UnsupportedSecond = null; 756attributes.UnsupportedSecond = info.Version; 776attribute.UnsupportedSecond = null; 1571diagnosticAttribute.UnsupportedSecond = (Version)attribute.UnsupportedSecond.Clone(); 1587diagnosticAttribute.UnsupportedSecond = (Version)attribute.UnsupportedSecond.Clone(); 1763copyTo.UnsupportedSecond = (Version?)copyFrom.UnsupportedSecond?.Clone(); 1870existing.UnsupportedSecond = childAttribute.UnsupportedSecond; 2037attributes.UnsupportedSecond = null; 2048attributes.UnsupportedSecond = null; 2206attributes.UnsupportedSecond = attributes.UnsupportedFirst; 2213attributes.UnsupportedSecond = version;
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (2)
112versions.UnsupportedSecond = version; 254versions.UnsupportedSecond = expectedVersion;
35 references to UnsupportedSecond
Microsoft.CodeAnalysis.NetAnalyzers (35)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (32)
535if (attribute.UnsupportedSecond != null && 536attribute.UnsupportedSecond.IsGreaterThanOrEqualTo(info.Version)) 566if (attribute.UnsupportedSecond != null && 568version.IsGreaterThanOrEqualTo(attribute.UnsupportedSecond)) 1026var unsupportedVersion = pAttribute.UnsupportedSecond ?? pAttribute.UnsupportedFirst; 1166var unsupportedVersion = csAttribute.UnsupportedSecond ?? csAttribute.UnsupportedFirst; 1180var unsupportedVersion = csAttribute.UnsupportedSecond ?? csAttribute.UnsupportedFirst; 1183var calledUnsupported = attribute.UnsupportedSecond ?? attribute.UnsupportedFirst; 1239var version = attribute.UnsupportedSecond ?? attribute.UnsupportedFirst; 1568if (attribute.UnsupportedSecond != null && 1571diagnosticAttribute.UnsupportedSecond = (Version)attribute.UnsupportedSecond.Clone(); 1584if (attribute.UnsupportedSecond != null && !SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedSecond)) 1587diagnosticAttribute.UnsupportedSecond = (Version)attribute.UnsupportedSecond.Clone(); 1733SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedSecond!); 1737callSiteAttribute.UnsupportedSecond != null && unsupporteAttribute.IsGreaterThanOrEqualTo(callSiteAttribute.UnsupportedSecond) : 1763copyTo.UnsupportedSecond = (Version?)copyFrom.UnsupportedSecond?.Clone(); 1867if (childAttribute.UnsupportedSecond != null && (existing.UnsupportedSecond == null || 1868childAttribute.UnsupportedSecond < existing.UnsupportedSecond)) 1870existing.UnsupportedSecond = childAttribute.UnsupportedSecond; 1884(existing.UnsupportedSecond == null || existing.UnsupportedSecond > childAttribute.Obsoleted)) && 1935if (childAttribute.UnsupportedSecond != null && childAttribute.UnsupportedSecond > attributes.UnsupportedFirst) 1937attributes.UnsupportedFirst = childAttribute.UnsupportedSecond; 2045(attributes.UnsupportedSecond != null && 2046attributes.SupportedFirst > attributes.UnsupportedSecond)) 2210else if (attributes.UnsupportedSecond == null || 2211attributes.UnsupportedSecond > version)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Data.cs (1)
41SupportedSecond != null || UnsupportedSecond != null || Obsoleted != null;
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (2)
170if (versions.UnsupportedSecond != null) 172infosBuilder.Add(new PlatformMethodValue(name, versions.UnsupportedSecond, negated: true));