3 references to TryGetZeroOrOneConstant
Microsoft.CodeAnalysis.NetAnalyzers (3)
Microsoft.NetCore.Analyzers\Performance\UseCountProperly.cs (3)
317
if (!
TryGetZeroOrOneConstant
(constantOperation, out int constant) || constant != 0)
565
if (!
TryGetZeroOrOneConstant
(binaryOperation.RightOperand, out int constant))
613
if (!
TryGetZeroOrOneConstant
(binaryOperation.LeftOperand, out int constant))