1 implementation of OperatorKind
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5591public UnaryOperatorKind OperatorKind { get; }
25 references to OperatorKind
ILLink.RoslynAnalyzer (1)
DataFlow\FeatureChecksVisitor.cs (1)
64 if (operation.OperatorKind is not UnaryOperatorKind.Not)
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
2256return new UnaryOperation(operation.OperatorKind, VisitRequired(operation.Operand), operation.IsLifted, operation.IsChecked, 2263return operation.OperatorKind == UnaryOperatorKind.Not && 2738? new UnaryOperation(lastUnary.OperatorKind, condition, lastUnary.IsLifted, lastUnary.IsChecked,
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
234? unary.OperatorKind == UnaryOperatorKind.Minus && IsLiteralNumber(unary.Operand)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
59case IUnaryOperation { OperatorKind: UnaryOperatorKind.Not } op:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
795if (rewrittenOperation is not IUnaryOperation { OperatorKind: UnaryOperatorKind.BitwiseNegation })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
139OperatorKind: UnaryOperatorKind.Not, 734(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition }) 794(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition })
Microsoft.CodeAnalysis.CSharp.Features (4)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
59case IUnaryOperation { OperatorKind: UnaryOperatorKind.Not } op:
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
139OperatorKind: UnaryOperatorKind.Not, 734(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition }) 794(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition })
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
795if (rewrittenOperation is not IUnaryOperation { OperatorKind: UnaryOperatorKind.BitwiseNegation })
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
234? unary.OperatorKind == UnaryOperatorKind.Minus && IsLiteralNumber(unary.Operand)
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\OperationTreeVerifier.cs (1)
1168var kindStr = $"{nameof(UnaryOperatorKind)}.{operation.OperatorKind}";
Compilation\TestOperationVisitor.cs (1)
750var unaryOperationKind = operation.OperatorKind;
Diagnostics\OperationTestAnalyzer.cs (6)
1532if (unary.OperatorKind == UnaryOperatorKind.Minus && unary.OperatorMethod != null && unary.OperatorMethod.Name.Contains("UnaryNegation")) 1537if (unary.OperatorKind == UnaryOperatorKind.Not) 1542if (unary.OperatorKind == UnaryOperatorKind.BitwiseNegation) 1652unary.OperatorKind.ToString())); 1972if (unary.OperatorKind == UnaryOperatorKind.True) 1976else if (unary.OperatorKind == UnaryOperatorKind.False)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests.vb (1)
133Assert.Equal(negate3.OperatorKind, Operations.UnaryOperatorKind.Minus)