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; 1565diagnosticAttribute.SupportedFirst = (Version)attributeToCheck.Clone(); 1586diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1606diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1613diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1624diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1753diagnosticAttribute.SupportedFirst = (Version)operationAttributes.SupportedFirst.Clone(); 1787copyTo.SupportedFirst = (Version?)copyFrom.SupportedFirst?.Clone(); 1892existing.SupportedFirst = childAttribute.SupportedFirst; 1906existing.SupportedFirst = childAttribute.SupportedFirst; 1949attributes.SupportedFirst = childAttribute.SupportedFirst > attributes.SupportedFirst ? childAttribute.SupportedFirst : null; 2069attributes.SupportedFirst = null; 2192attributes.SupportedFirst = null; 2260attributes.SupportedFirst = version; 2265attributes.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; 1548if (attribute.SupportedFirst != null) 1550if (attribute.UnsupportedFirst == null || attribute.UnsupportedFirst > attribute.SupportedFirst) 1558var attributeToCheck = attribute.SupportedSecond ?? attribute.SupportedFirst; 1570!(SuppressedByCallSiteSupported(attribute, callSiteAttribute.SupportedFirst) || 1582if (callSiteAttribute.SupportedFirst != null) 1586diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1606diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1613diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1624diagnosticAttribute.SupportedFirst = (Version)attribute.SupportedFirst.Clone(); 1632if (callSiteAttribute.SupportedFirst != null) 1661!callSiteAttributes.Values.Any(v => v.SupportedFirst != null)) 1674if (callSiteAttribute.SupportedFirst != null) 1714if (attributes.SupportedFirst != null && 1728if (csAttributes.SupportedFirst != null && 1746if (operationAttributes.SupportedFirst != null) 1753diagnosticAttribute.SupportedFirst = (Version)operationAttributes.SupportedFirst.Clone(); 1759SuppressedByCallSiteSupported(attribute, callSiteAttribute.SupportedFirst) || 1763DenyList(callSiteAttribute) && callSiteAttribute.SupportedFirst != null ? 1768callSiteSupportedFirst != null && callSiteSupportedFirst.IsGreaterThanOrEqualTo(attribute.SupportedFirst) && 1772callSiteAttribute.SupportedFirst != null && callSiteAttribute.SupportedFirst.IsGreaterThanOrEqualTo(attribute.SupportedFirst) || 1777(callSiteAttribute.SupportedFirst == null || callSiteAttribute.SupportedFirst.IsGreaterThanOrEqualTo(attribute.SupportedFirst)) && 1778(callSiteAttribute.SupportedSecond == null || callSiteAttribute.SupportedSecond.IsGreaterThanOrEqualTo(attribute.SupportedFirst)); 1781callSitePlatforms.SupportedFirst != null && callSitePlatforms.SupportedFirst.IsGreaterThanOrEqualTo(checkingVersion) || 1787copyTo.SupportedFirst = (Version?)copyFrom.SupportedFirst?.Clone(); 1889if (childAttribute.SupportedFirst != null && (existing.SupportedFirst == null || 1890childAttribute.SupportedFirst > existing.SupportedFirst)) 1892existing.SupportedFirst = childAttribute.SupportedFirst; 1902if (existing.SupportedFirst != null && 1903childAttribute.SupportedFirst != null && 1904childAttribute.SupportedFirst > existing.SupportedFirst) 1906existing.SupportedFirst = childAttribute.SupportedFirst; 1912existing.SupportedFirst != null && 1935if (childAttribute.SupportedFirst.IsGreaterThanOrEqualTo(attributes.SupportedFirst)) 1938if (attributes.SupportedSecond == null || attributes.SupportedSecond < childAttribute.SupportedFirst) 1940attributes.SupportedSecond = childAttribute.SupportedFirst; 1946if (attributes.SupportedFirst.IsGreaterThanOrEqualTo(childAttribute.UnsupportedFirst)) 1949attributes.SupportedFirst = childAttribute.SupportedFirst > attributes.SupportedFirst ? childAttribute.SupportedFirst : null; 2067if (attributes.UnsupportedFirst != null && attributes.UnsupportedFirst == attributes.SupportedFirst) 2073else if (attributes.SupportedFirst == null || 2075attributes.SupportedFirst > attributes.UnsupportedSecond)) 2190if (attributes.SupportedFirst != null && attributes.SupportedFirst == version) 2255if (attributes.SupportedFirst != null) 2258if (attributes.SupportedFirst > version) 2298attributes.SupportedFirst != null && 2299(attributes.UnsupportedFirst == null || attributes.UnsupportedFirst.IsGreaterThanOrEqualTo(attributes.SupportedFirst)); 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 (3)
136if (v.UnsupportedFirst != null && versions.SupportedFirst == v.UnsupportedFirst && AllowList(versions)) 162if (versions.SupportedFirst != null) 164infosBuilder.Add(new PlatformMethodValue(name, versions.SupportedFirst, negated: false));