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