12 references to op_Addition
Microsoft.CodeAnalysis.NetAnalyzers (12)
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsAnalyzer.cs (11)
72
RuleKind.
op_Addition
or
144
AddBinaryOperatorMethods(methodSymbols, "Add", armAdvSimdTypeSymbol, RuleKind.
op_Addition
);
145
AddBinaryOperatorMethods(methodSymbols, "AddScalar", armAdvSimdTypeSymbol, RuleKind.
op_Addition
, [SpecialType.System_Int64, SpecialType.System_UInt64, SpecialType.System_Double]);
169
AddBinaryOperatorMethods(methodSymbols, "Add", armAdvSimdArm64TypeSymbol, RuleKind.
op_Addition
);
180
AddBinaryOperatorMethods(methodSymbols, "Add", wasmPackedSimdTypeSymbol, RuleKind.
op_Addition
);
198
AddBinaryOperatorMethods(methodSymbols, "Add", x86AvxTypeSymbol, RuleKind.
op_Addition
);
209
AddBinaryOperatorMethods(methodSymbols, "Add", x86Avx2TypeSymbol, RuleKind.
op_Addition
);
223
AddBinaryOperatorMethods(methodSymbols, "Add", x86Avx512BWTypeSymbol, RuleKind.
op_Addition
);
247
AddBinaryOperatorMethods(methodSymbols, "Add", x86Avx512FTypeSymbol, RuleKind.
op_Addition
);
268
AddBinaryOperatorMethods(methodSymbols, "Add", x86SseTypeSymbol, RuleKind.
op_Addition
);
279
AddBinaryOperatorMethods(methodSymbols, "Add", x86Sse2TypeSymbol, RuleKind.
op_Addition
);
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsFixer.cs (1)
52
RuleKind.
op_Addition
=> ReplaceWithBinaryOperator(currentNode, generator, isCommutative: true, generator.AddExpression),