1 write to PlatformName
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (1)
28
PlatformName
= platformPropertyName ?? throw new ArgumentNullException(nameof(platformPropertyName));
23 references to PlatformName
Microsoft.CodeAnalysis.NetAnalyzers (23)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (17)
500
if (attributes.TryGetValue(info.
PlatformName
, out var attribute))
521
IsOnlySupportNeedsGuard(info.
PlatformName
, attributes, originalCsAttributes))
529
else if (value.AnalysisValues.Contains(new PlatformMethodValue(info.
PlatformName
, EmptyVersion, false)))
551
capturedVersions[info.
PlatformName
] = info.Version;
559
capturedVersions.TryGetValue(info.
PlatformName
, out var version) &&
567
capturedVersions.TryGetValue(info.
PlatformName
, out version) &&
583
RemoveOtherSupportsOnDifferentPlatforms(attributes, info.
PlatformName
);
587
capturedVersions.TryGetValue(info.
PlatformName
, out var unsupportedVersion);
591
RemoveUnsupportsOnDifferentPlatforms(attributes, info.
PlatformName
);
597
RemoveUnsupportsOnDifferentPlatforms(attributes, info.
PlatformName
);
660
=> !parentValue.Negated && !attributes.ContainsKey(parentValue.
PlatformName
) &&
661
originalAttributes.TryGetValue(parentValue.
PlatformName
, out Versions? version) &&
678
if (csAttributes.TryGetValue(info.
PlatformName
, out var version))
723
if (csAttributes.TryGetValue(info.
PlatformName
, out var attributes))
738
csAttributes.Add(info.
PlatformName
, new Versions() { SupportedFirst = info.Version, UnsupportedFirst = unsupportedVersion });
748
if (csAttributes.TryGetValue(info.
PlatformName
, out var attributes))
761
csAttributes.Add(info.
PlatformName
, new Versions() { UnsupportedFirst = info.Version });
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.OperationVisitor.cs (1)
138
var index = infosBuilder.FindIndex(v => v.
PlatformName
== relation.relatedPlatform);
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Value.cs (5)
38
=> new PlatformMethodValue(
PlatformName
, Version, !Negated);
153
var result = $"{
PlatformName
};{Version}";
163
=>
PlatformName
.Equals(other.
PlatformName
, StringComparison.OrdinalIgnoreCase) &&
173
PlatformName
.GetHashCode(),