24 writes to SupportedFirst
Microsoft.CodeAnalysis.NetAnalyzers (24)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (21)
509attribute.SupportedFirst = null; 523attribute.SupportedFirst = null; 580attribute.SupportedFirst = null; 727attributes.SupportedFirst = info.Version; 738csAttributes.Add(info.PlatformName, new Versions() { SupportedFirst = info.Version, UnsupportedFirst = unsupportedVersion }); 777attribute.SupportedFirst = null; 803attribute.SupportedFirst = null; 1538diagnosticAttribute.SupportedFirst = (Version)attributeToCheck.Clone(); 1559diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1579diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1586diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1597diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1726diagnosticAttribute.SupportedFirst = (Version)operationAttributes.SupportedFirst.Clone(); 1760copyTo.SupportedFirst = (Version?)copyFrom.SupportedFirst?.Clone(); 1863existing.SupportedFirst = childAttribute.SupportedFirst; 1877existing.SupportedFirst = childAttribute.SupportedFirst; 1920attributes.SupportedFirst = childAttribute.SupportedFirst > attributes.SupportedFirst ? childAttribute.SupportedFirst : null; 2040attributes.SupportedFirst = null; 2163attributes.SupportedFirst = null; 2231attributes.SupportedFirst = version; 2236attributes.SupportedFirst = version;
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (3)
104versions.SupportedFirst = version; 144v.SupportedFirst = null; 246versions.SupportedFirst = expectedVersion;
75 references to SupportedFirst
Microsoft.CodeAnalysis.NetAnalyzers (75)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (71)
575var checkVersion = attribute.SupportedSecond ?? attribute.SupportedFirst; 662parentValue.Version.IsGreaterThanOrEqualTo(version.SupportedFirst); 682if (version.SupportedFirst != info.Version) 725if (attributes.SupportedFirst == null) 874if (pAttribute.SupportedFirst != null && supportedRule.GetValueOrDefault(true)) 877var supportedVersion = pAttribute.SupportedSecond ?? pAttribute.SupportedFirst; 1027var supportedVersion = pAttribute.SupportedSecond ?? pAttribute.SupportedFirst; 1134var supportedVersion = csAttribute.SupportedSecond ?? csAttribute.SupportedFirst; 1197if ((attribute.SupportedFirst == null || !IsEmptyVersion(attribute.SupportedFirst)) && 1242var supportedVersion = attribute.SupportedSecond ?? attribute.SupportedFirst; 1263var supportedVersion = attribute.SupportedSecond ?? attribute.SupportedFirst; 1521if (attribute.SupportedFirst != null) 1523if (attribute.UnsupportedFirst == null || attribute.UnsupportedFirst > attribute.SupportedFirst) 1531var attributeToCheck = attribute.SupportedSecond ?? attribute.SupportedFirst; 1543!(SuppressedByCallSiteSupported(attribute, callSiteAttribute.SupportedFirst) || 1555if (callSiteAttribute.SupportedFirst != null) 1559diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1579diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1586diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1597diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1605if (callSiteAttribute.SupportedFirst != null) 1634!callSiteAttributes.Values.Any(v => v.SupportedFirst != null)) 1647if (callSiteAttribute.SupportedFirst != null) 1687if (attributes.SupportedFirst != null && 1701if (csAttributes.SupportedFirst != null && 1719if (operationAttributes.SupportedFirst != null) 1726diagnosticAttribute.SupportedFirst = (Version)operationAttributes.SupportedFirst.Clone(); 1732SuppressedByCallSiteSupported(attribute, callSiteAttribute.SupportedFirst) || 1736DenyList(callSiteAttribute) && callSiteAttribute.SupportedFirst != null ? 1741callSiteSupportedFirst != null && callSiteSupportedFirst.IsGreaterThanOrEqualTo(attribute.SupportedFirst) && 1745callSiteAttribute.SupportedFirst != null && callSiteAttribute.SupportedFirst.IsGreaterThanOrEqualTo(attribute.SupportedFirst) || 1750(callSiteAttribute.SupportedFirst == null || callSiteAttribute.SupportedFirst.IsGreaterThanOrEqualTo(attribute.SupportedFirst)) && 1751(callSiteAttribute.SupportedSecond == null || callSiteAttribute.SupportedSecond.IsGreaterThanOrEqualTo(attribute.SupportedFirst)); 1754callSitePlatforms.SupportedFirst != null && callSitePlatforms.SupportedFirst.IsGreaterThanOrEqualTo(checkingVersion) || 1760copyTo.SupportedFirst = (Version?)copyFrom.SupportedFirst?.Clone(); 1860if (childAttribute.SupportedFirst != null && (existing.SupportedFirst == null || 1861childAttribute.SupportedFirst > existing.SupportedFirst)) 1863existing.SupportedFirst = childAttribute.SupportedFirst; 1873if (existing.SupportedFirst != null && 1874childAttribute.SupportedFirst != null && 1875childAttribute.SupportedFirst > existing.SupportedFirst) 1877existing.SupportedFirst = childAttribute.SupportedFirst; 1883existing.SupportedFirst != null && 1906if (childAttribute.SupportedFirst.IsGreaterThanOrEqualTo(attributes.SupportedFirst)) 1909if (attributes.SupportedSecond == null || attributes.SupportedSecond < childAttribute.SupportedFirst) 1911attributes.SupportedSecond = childAttribute.SupportedFirst; 1917if (attributes.SupportedFirst.IsGreaterThanOrEqualTo(childAttribute.UnsupportedFirst)) 1920attributes.SupportedFirst = childAttribute.SupportedFirst > attributes.SupportedFirst ? childAttribute.SupportedFirst : null; 2038if (attributes.UnsupportedFirst != null && attributes.UnsupportedFirst == attributes.SupportedFirst) 2044else if (attributes.SupportedFirst == null || 2046attributes.SupportedFirst > attributes.UnsupportedSecond)) 2161if (attributes.SupportedFirst != null && attributes.SupportedFirst == version) 2226if (attributes.SupportedFirst != null) 2229if (attributes.SupportedFirst > version) 2269attributes.SupportedFirst != null && 2270(attributes.UnsupportedFirst == null || attributes.UnsupportedFirst.IsGreaterThanOrEqualTo(attributes.SupportedFirst)); 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 (3)
136if (v.UnsupportedFirst != null && versions.SupportedFirst == v.UnsupportedFirst && AllowList(versions)) 162if (versions.SupportedFirst != null) 164infosBuilder.Add(new PlatformMethodValue(name, versions.SupportedFirst, negated: false));