7 references to op_UnaryNegation
Microsoft.CodeAnalysis.NetAnalyzers (7)
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsAnalyzer.cs (6)
86
RuleKind.
op_UnaryNegation
=> IsValidUnaryOperatorMethodInvocation(invocation),
162
AddUnaryOperatorMethods(methodSymbols, "Negate", armAdvSimdTypeSymbol, RuleKind.
op_UnaryNegation
);
163
AddUnaryOperatorMethods(methodSymbols, "NegateScalar", armAdvSimdTypeSymbol, RuleKind.
op_UnaryNegation
, [SpecialType.System_Double]);
174
AddUnaryOperatorMethods(methodSymbols, "Negate", armAdvSimdArm64TypeSymbol, RuleKind.
op_UnaryNegation
);
175
AddUnaryOperatorMethods(methodSymbols, "NegateScalar", armAdvSimdArm64TypeSymbol, RuleKind.
op_UnaryNegation
, [SpecialType.System_Int64]);
192
AddUnaryOperatorMethods(methodSymbols, "Negate", wasmPackedSimdTypeSymbol, RuleKind.
op_UnaryNegation
);
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsFixer.cs (1)
59
RuleKind.
op_UnaryNegation
=> ReplaceWithUnaryOperator(currentNode, generator, generator.NegateExpression),