2 references to SwitchRule
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (2)
845
var rule = supportedRule ? SwitchSupportedRule(callsite) :
SwitchRule
(callsite, true);
1010
context.ReportDiagnostic(operation.CreateDiagnostic(
SwitchRule
(callsite, unsupportedRule), operationName, JoinNames(platformNames), csPlatformNames));