1 override of ReplaceWithBinaryOperator
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeQuality.Analyzers\Maintainability\CSharpUseCrossPlatformIntrinsicsFixer.cs (1)
32
protected override SyntaxNode
ReplaceWithBinaryOperator
(SyntaxNode currentNode, SyntaxGenerator generator, bool isCommutative, Func<SyntaxNode, SyntaxNode, SyntaxNode?> binaryOpFunc)
6 references to ReplaceWithBinaryOperator
Microsoft.CodeAnalysis.NetAnalyzers (6)
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsFixer.cs (6)
52
RuleKind.op_Addition =>
ReplaceWithBinaryOperator
(currentNode, generator, isCommutative: true, generator.AddExpression),
53
RuleKind.op_BitwiseAnd =>
ReplaceWithBinaryOperator
(currentNode, generator, isCommutative: true, generator.BitwiseAndExpression),
54
RuleKind.op_BitwiseOr =>
ReplaceWithBinaryOperator
(currentNode, generator, isCommutative: true, generator.BitwiseOrExpression),
55
RuleKind.op_Division =>
ReplaceWithBinaryOperator
(currentNode, generator, isCommutative: false, generator.DivideExpression),
56
RuleKind.op_Multiply =>
ReplaceWithBinaryOperator
(currentNode, generator, isCommutative: true, generator.MultiplyExpression),
58
RuleKind.op_Subtraction =>
ReplaceWithBinaryOperator
(currentNode, generator, isCommutative: false, generator.SubtractExpression),