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