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; 1546diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1564diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1580diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1611diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1616diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1622diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1629diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1637diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1762copyTo.UnsupportedFirst = (Version?)copyFrom.UnsupportedFirst?.Clone(); 1859existing.UnsupportedFirst = childAttribute.UnsupportedFirst; 1921attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1926attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1937attributes.UnsupportedFirst = childAttribute.UnsupportedSecond; 2151attributes.UnsupportedFirst = null; 2207attributes.UnsupportedFirst = version; 2219attributes.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; 1523if (attribute.UnsupportedFirst == null || attribute.UnsupportedFirst > attribute.SupportedFirst) 1541if (attribute.UnsupportedFirst != null && 1544SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)))) 1546diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1551else if (attribute.UnsupportedFirst != null) // also means Unsupported < Supported, deny list 1564diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1577if (!SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)) 1580diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1601else if (attribute.UnsupportedFirst != null) // Unsupported for this but supported all other 1607if (callSiteAttribute.UnsupportedFirst != null) 1609if (!SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)) 1611diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1616diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1622diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1627!SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst)) 1629diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1637diagnosticAttribute.UnsupportedFirst = (Version)attribute.UnsupportedFirst.Clone(); 1650(callSiteAttribute.UnsupportedFirst == null || callSiteAttribute.UnsupportedFirst > attribute.Obsoleted)) 1658(callSiteAttribute.UnsupportedFirst != null && callSiteAttribute.UnsupportedFirst > attribute.Obsoleted || 1738callSiteAttribute.UnsupportedFirst != null && unsupporteAttribute.IsGreaterThanOrEqualTo(callSiteAttribute.UnsupportedFirst); 1746SuppressedByCallSiteUnsupported(callSiteAttribute, attribute.UnsupportedFirst!); 1762copyTo.UnsupportedFirst = (Version?)copyFrom.UnsupportedFirst?.Clone(); 1854if (childAttribute.UnsupportedFirst != null) 1857if (childAttribute.UnsupportedFirst < existing.UnsupportedFirst) 1859existing.UnsupportedFirst = childAttribute.UnsupportedFirst; 1882(childAttribute.Obsoleted < existing.UnsupportedFirst || 1915if (childAttribute.UnsupportedFirst != null) 1917if (attributes.SupportedFirst.IsGreaterThanOrEqualTo(childAttribute.UnsupportedFirst)) 1921attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1924else if (attributes.UnsupportedFirst == null || attributes.UnsupportedFirst > childAttribute.UnsupportedFirst) 1926attributes.UnsupportedFirst = childAttribute.UnsupportedFirst; 1930if (attributes.SupportedSecond.IsGreaterThanOrEqualTo(childAttribute.UnsupportedFirst)) 1935if (childAttribute.UnsupportedSecond != null && childAttribute.UnsupportedSecond > attributes.UnsupportedFirst) 2038if (attributes.UnsupportedFirst != null && attributes.UnsupportedFirst == attributes.SupportedFirst) 2149if (attributes.UnsupportedFirst != null && attributes.UnsupportedFirst == version) 2202if (attributes.UnsupportedFirst != null) 2204if (attributes.UnsupportedFirst > version) 2206attributes.UnsupportedSecond = attributes.UnsupportedFirst; 2270(attributes.UnsupportedFirst == null || attributes.UnsupportedFirst.IsGreaterThanOrEqualTo(attributes.SupportedFirst)); 2278attributes.UnsupportedFirst != null && 2279(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)