25 references to Callsite
Microsoft.CodeAnalysis.NetAnalyzers (25)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (23)
836var csPlatformNames = JoinNames(GetCallsitePlatforms(attributes, callsiteAttributes, out var callsite, supported: supportedRule)); 838if (callsite == Callsite.Reachable && IsDenyList(callsiteAttributes)) 854static DiagnosticDescriptor SwitchSupportedRule(Callsite callsite) 857Callsite.AllPlatforms => OnlySupportedCsAllPlatforms, 858Callsite.Reachable => OnlySupportedCsReachable, 859Callsite.Unreachable => OnlySupportedCsUnreachable, 940static DiagnosticDescriptor SwitchObsoletedRule(Callsite callsite) 944Callsite.AllPlatforms => ObsoletedCsAllPlatforms, 945Callsite.Reachable => ObsoletedCsReachable, 950static DiagnosticDescriptor SwitchRule(Callsite callsite, bool unsupported) 956Callsite.AllPlatforms => UnsupportedCsAllPlatforms, 957Callsite.Reachable => UnsupportedCsReachable, 965Callsite.AllPlatforms => SupportedCsAllPlatforms, 966Callsite.Reachable => SupportedCsReachable, 1006var csPlatformNames = JoinNames(GetCallsitePlatforms(attributes, callsiteAttributes, out var callsite, supported: !unsupportedRule)); 1126SmallDictionary<string, Versions>? callsiteAttributes, out Callsite callsite, bool supported) 1128callsite = Callsite.AllPlatforms; 1137callsite = Callsite.Reachable; 1184callsite = Callsite.Unreachable; 1200callsite = Callsite.Reachable; 1420if (callSiteAttributes.Callsite != Callsite.Empty && 1919parentAttributes.Callsite = Callsite.Empty; 1986parentAttributes.Callsite = Callsite.Empty;
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.Data.cs (2)
48public PlatformAttributes(Callsite callsite, SmallDictionary<string, Versions> platforms) 55public Callsite Callsite { get; set; }