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