1 implementation of OperatorKind
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5218public UnaryOperatorKind OperatorKind { get; }
24 references to OperatorKind
Microsoft.CodeAnalysis (3)
Operations\ControlFlowGraphBuilder.cs (3)
2239return new UnaryOperation(operation.OperatorKind, VisitRequired(operation.Operand), operation.IsLifted, operation.IsChecked, 2246return operation.OperatorKind == UnaryOperatorKind.Not && 2721? new UnaryOperation(lastUnary.OperatorKind, condition, lastUnary.IsLifted, lastUnary.IsChecked,
Microsoft.CodeAnalysis.CodeStyle (1)
HashCodeAnalyzer.cs (1)
234? unary.OperatorKind == UnaryOperatorKind.Minus && IsLiteralNumber(unary.Operand)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
CastSimplifier.cs (1)
648if (rewrittenOperation is not IUnaryOperation { OperatorKind: UnaryOperatorKind.BitwiseNegation } unaryOperation)
CSharpUsePatternCombinatorsAnalyzer.cs (1)
59case IUnaryOperation { OperatorKind: UnaryOperatorKind.Not } op:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConvertToRecordHelpers.cs (3)
139OperatorKind: UnaryOperatorKind.Not, 733(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition }) 793(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition })
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertToRecordHelpers.cs (3)
139OperatorKind: UnaryOperatorKind.Not, 733(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition }) 793(_, IUnaryOperation { OperatorKind: UnaryOperatorKind.Not, Operand: IOperation newCondition })
CSharpUsePatternCombinatorsAnalyzer.cs (1)
59case IUnaryOperation { OperatorKind: UnaryOperatorKind.Not } op:
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CastSimplifier.cs (1)
648if (rewrittenOperation is not IUnaryOperation { OperatorKind: UnaryOperatorKind.BitwiseNegation } unaryOperation)
Microsoft.CodeAnalysis.Features (1)
HashCodeAnalyzer.cs (1)
234? unary.OperatorKind == UnaryOperatorKind.Minus && IsLiteralNumber(unary.Operand)
Microsoft.CodeAnalysis.Test.Utilities (8)
Compilation\OperationTreeVerifier.cs (1)
1159var kindStr = $"{nameof(UnaryOperatorKind)}.{operation.OperatorKind}";
Compilation\TestOperationVisitor.cs (1)
732var 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)