5 references to ConstantExpectedMin
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\CSharpConstantExpectedAnalyzer.cs (1)
45
private readonly IdentifierNameSyntax _constantExpectedMinIdentifier = (IdentifierNameSyntax)SyntaxFactory.ParseName(
ConstantExpectedMin
);
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (4)
392
if (namedArg.Key.Equals(
ConstantExpectedMin
, StringComparison.Ordinal)
560
if (namedArg.Key.Equals(
ConstantExpectedMin
, StringComparison.Ordinal))
591
public Diagnostic MinIsIncompatible(string expectedTypeName, SyntaxNode attributeSyntax) => Diagnostic.Create(CA1856.IncompatibleConstantTypeRule, GetMinLocation(attributeSyntax)!,
ConstantExpectedMin
, expectedTypeName);
595
public Diagnostic MinIsOutOfRange(SyntaxNode attributeSyntax, string typeMinValue, string typeMaxValue) => Diagnostic.Create(CA1856.InvalidBoundsRule, GetMinLocation(attributeSyntax)!,
ConstantExpectedMin
, typeMinValue, typeMaxValue);