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