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