3 instantiations of PlatformAttributes
Microsoft.CodeAnalysis.NetAnalyzers (3)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (3)
1468var copy = new PlatformAttributes(copyAttributes.Callsite, new SmallDictionary<string, Versions>(StringComparer.OrdinalIgnoreCase)); 1805attributes ??= new PlatformAttributes() { IsAssemblyAttribute = symbol is IAssemblySymbol }; 1823parentAttributes = new PlatformAttributes(); // The API is for guard, clear parent attributes
13 references to PlatformAttributes
Microsoft.CodeAnalysis.NetAnalyzers (13)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (13)
191var platformSpecificMembers = new ConcurrentDictionary<ISymbol, PlatformAttributes>(); 314ConcurrentDictionary<ISymbol, PlatformAttributes> platformSpecificMembers, 1337ConcurrentDictionary<ISymbol, PlatformAttributes> platformSpecificMembers, ImmutableArray<string> msBuildPlatforms, 1410if (TryGetOrCreatePlatformAttributes(symbol, checkParents, crossPlatform, platformSpecificMembers, relatedPlatforms, out var operationAttributes)) 1418if (TryGetOrCreatePlatformAttributes(containingSymbol, true, crossPlatform, platformSpecificMembers, relatedPlatforms, out var callSiteAttributes)) 1436private static bool OperationHasOnlyAssemblyAttributesAndCalledFromSameAssembly(PlatformAttributes operationAttributes, ISymbol symbol, ISymbol containingSymbol) => 1466private static PlatformAttributes CopyAttributes(PlatformAttributes copyAttributes) 1468var copy = new PlatformAttributes(copyAttributes.Callsite, new SmallDictionary<string, Versions>(StringComparer.OrdinalIgnoreCase)); 1783bool crossPlatform, ConcurrentDictionary<ISymbol, PlatformAttributes> platformSpecificMembers, 1784SmallDictionary<string, (string relatedPlatform, bool isSubset)> relatedPlatforms, out PlatformAttributes attributes) 1799TryGetOrCreatePlatformAttributes(container, checkParents, crossPlatform, platformSpecificMembers, relatedPlatforms, out var containerAttributes)) 1812static void MergePlatformAttributes(ImmutableArray<AttributeData> immediateAttributes, ref PlatformAttributes parentAttributes,