2 references to DifferentTypeRule
Microsoft.CodeAnalysis.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Usage\ProvideCorrectArgumentToEnumHasFlag.cs (2)
33
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; } = ImmutableArray.Create(
DifferentTypeRule
);
58
context.ReportDiagnostic(invocation.CreateDiagnostic(
DifferentTypeRule
, GetArgumentTypeName(conversion), invocation.Instance.Type.Name));