Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEnd.cs (6)
123AddExpressionPartToSet(startArgument.Value, isNegated: false, startArgumentSymbols);
127AddExpressionPartToSet(lengthArgument.Value, isNegated: true, lengthArgumentSymbols);
138AddExpressionPartToSet(binaryOperation.LeftOperand, isNegated, set);
139AddExpressionPartToSet(binaryOperation.RightOperand, binaryOperation.OperatorKind == BinaryOperatorKind.Subtract ? !isNegated : isNegated, set);
143AddExpressionPartToSet(unaryOperation.Operand, unaryOperation.OperatorKind == UnaryOperatorKind.Minus ? !isNegated : isNegated, set);
147AddExpressionPartToSet(parenthesizedOperation.Operand, isNegated, set);