28 writes to UnsupportedFirst
Microsoft.CodeAnalysis.NetAnalyzers (28)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (25)
514attribute.UnsupportedFirst = null; 526attribute.UnsupportedFirst = null; 562attribute.UnsupportedFirst = null; 734attributes.UnsupportedFirst = unsupportedVersion; 738csAttributes.Add(info.PlatformName, new Versions() { SupportedFirst = info.Version, UnsupportedFirst = unsupportedVersion }); 752attributes.UnsupportedFirst = info.Version; 761csAttributes.Add(info.PlatformName, new Versions() { UnsupportedFirst = info.Version }); 775attribute.UnsupportedFirst = null; 793attribute.UnsupportedFirst = null; 1573diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1591diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1607diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1638diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1643diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1649diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1656diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1664diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1789copyTo.UnsupportedFirst = (Version?)copyFrom.UnsupportedFirst?.Clone(); 1888existing.UnsupportedFirst = childAttribute.UnsupportedFirst; 1950attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1955attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1966attributes.UnsupportedFirst = childAttribute.UnsupportedSecond; 2180attributes.UnsupportedFirst = null; 2236attributes.UnsupportedFirst = version; 2248attributes.UnsupportedFirst = version;
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (3)
108versions.UnsupportedFirst = version; 145v.UnsupportedFirst = null; 250versions.UnsupportedFirst = expectedVersion;
85 references to UnsupportedFirst
Microsoft.CodeAnalysis.NetAnalyzers (85)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (78)
504if (attribute.UnsupportedFirst != null && 505attribute.UnsupportedFirst.IsGreaterThanOrEqualTo(info.Version)) 558if (attribute.UnsupportedFirst != null && 560attribute.UnsupportedFirst.IsGreaterThanOrEqualTo(version)) 687if (version.UnsupportedFirst != info.Version) 750if (attributes.UnsupportedFirst == null) 791if (supportedVersion.IsGreaterThanOrEqualTo(attribute.UnsupportedFirst)) 878if (pAttribute.UnsupportedFirst != null && !IsEmptyVersion(pAttribute.UnsupportedFirst)) 883GetFormattedString(PlatformCompatibilityVersionAndBefore, pName, pAttribute.UnsupportedFirst))); 888GetFormattedString(PlatformCompatibilityFromVersionToVersion, pName, supportedVersion, pAttribute.UnsupportedFirst))); 906else if (pAttribute.UnsupportedFirst != null) 914if (IsEmptyVersion(pAttribute.UnsupportedFirst)) 927GetFormattedString(PlatformCompatibilityVersionAndLater, pName, pAttribute.UnsupportedFirst))); 1026var unsupportedVersion = pAttribute.UnsupportedSecond ?? pAttribute.UnsupportedFirst; 1038csAttribute.UnsupportedFirst != null && csAttribute.UnsupportedFirst > supportedVersion)) 1041if (IsEmptyVersion(pAttribute.UnsupportedFirst!)) 1138if (csAttribute.UnsupportedFirst != null && !IsEmptyVersion(csAttribute.UnsupportedFirst)) 1142platformNames.Add(GetFormattedString(PlatformCompatibilityVersionAndBefore, pName, csAttribute.UnsupportedFirst)); 1144else if (supportedVersion > csAttribute.UnsupportedFirst) 1151pName, supportedVersion, csAttribute.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; 1550if (attribute.UnsupportedFirst == null || attribute.UnsupportedFirst > attribute.SupportedFirst) 1568if (attribute.UnsupportedFirst != null && 1571SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)))) 1573diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1578else if (attribute.UnsupportedFirst != null) // also means Unsupported < Supported, deny list 1591diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1604if (!SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)) 1607diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1628else if (attribute.UnsupportedFirst != null) // Unsupported for this but supported all other 1634if (callSiteAttribute.UnsupportedFirst != null) 1636if (!SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)) 1638diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1643diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1649diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1654!SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)) 1656diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1664diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1677(callSiteAttribute.UnsupportedFirst == null || callSiteAttribute.UnsupportedFirst > attribute.Obsoleted)) 1685(callSiteAttribute.UnsupportedFirst != null && callSiteAttribute.UnsupportedFirst > attribute.Obsoleted || 1765callSiteAttribute.UnsupportedFirst != null && unsupporteAttribute.IsGreaterThanOrEqualTo(callSiteAttribute.UnsupportedFirst); 1773SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst!); 1789copyTo.UnsupportedFirst = (Version?)copyFrom.UnsupportedFirst?.Clone(); 1883if (childAttribute.UnsupportedFirst != null) 1886if (childAttribute.UnsupportedFirst < existing.UnsupportedFirst) 1888existing.UnsupportedFirst = childAttribute.UnsupportedFirst; 1911(childAttribute.Obsoleted < existing.UnsupportedFirst || 1944if (childAttribute.UnsupportedFirst != null) 1946if (attributes.SupportedFirst.IsGreaterThanOrEqualTo(childAttribute.UnsupportedFirst)) 1950attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1953else if (attributes.UnsupportedFirst == null || attributes.UnsupportedFirst > childAttribute.UnsupportedFirst) 1955attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1959if (attributes.SupportedSecond.IsGreaterThanOrEqualTo(childAttribute.UnsupportedFirst)) 1964if (childAttribute.UnsupportedSecond != null && childAttribute.UnsupportedSecond > attributes.UnsupportedFirst) 2067if (attributes.UnsupportedFirst != null && attributes.UnsupportedFirst == attributes.SupportedFirst) 2178if (attributes.UnsupportedFirst != null && attributes.UnsupportedFirst == version) 2231if (attributes.UnsupportedFirst != null) 2233if (attributes.UnsupportedFirst > version) 2235attributes.UnsupportedSecond = attributes.UnsupportedFirst; 2299(attributes.UnsupportedFirst == null || attributes.UnsupportedFirst.IsGreaterThanOrEqualTo(attributes.SupportedFirst)); 2307attributes.UnsupportedFirst != null && 2308(attributes.SupportedFirst == null || attributes.UnsupportedFirst < attributes.SupportedFirst);
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Data.cs (1)
40public bool IsSet() => SupportedFirst != null || UnsupportedFirst != null ||
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (6)
106else if (versions.UnsupportedFirst == null) 136if (v.UnsupportedFirst != null && versions.SupportedFirst == v.UnsupportedFirst && AllowList(versions)) 167if (versions.UnsupportedFirst != null) 169infosBuilder.Add(new PlatformMethodValue(name, versions.UnsupportedFirst, negated: true)); 248else if (versions.UnsupportedFirst == null)