3 references to IncompatibleConstantTypeRule
Microsoft.CodeAnalysis.NetAnalyzers (3)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (3)
119CA1856.UnsupportedTypeRule, CA1856.IncompatibleConstantTypeRule,
591public Diagnostic MinIsIncompatible(string expectedTypeName, SyntaxNode attributeSyntax) => Diagnostic.Create(CA1856.IncompatibleConstantTypeRule, GetMinLocation(attributeSyntax)!, ConstantExpectedMin, expectedTypeName);
593public Diagnostic MaxIsIncompatible(string expectedTypeName, SyntaxNode attributeSyntax) => Diagnostic.Create(CA1856.IncompatibleConstantTypeRule, GetMaxLocation(attributeSyntax)!, ConstantExpectedMax, expectedTypeName);