1 write to OperatorKind
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
1190
this.
OperatorKind
= operatorKind;
39 references to OperatorKind
Microsoft.CodeAnalysis.CSharp (39)
BoundTree\BoundExpression.cs (1)
605
return this.Condition.Kind == BoundKind.UnaryOperator && ((BoundUnaryOperator)this.Condition).
OperatorKind
.IsDynamic();
BoundTree\BoundNode_Source.cs (1)
316
append($" {unary.
OperatorKind
.ToString()} ");
CodeGen\EmitOperators.cs (4)
19
var operatorKind = expression.
OperatorKind
;
575
Debug.Assert(unOp.
OperatorKind
== UnaryOperatorKind.BoolLogicalNegation);
583
Debug.Assert(expression.
OperatorKind
.Operator() == UnaryOperatorKind.UnaryMinus);
584
var type = expression.
OperatorKind
.OperandTypes();
CodeGen\EmitStatement.cs (1)
577
if (unOp.
OperatorKind
== UnaryOperatorKind.BoolLogicalNegation)
CodeGen\Optimizer.cs (3)
1655
if (node.
OperatorKind
.IsChecked() && node.
OperatorKind
.Operator() == UnaryOperatorKind.UnaryMinus)
1660
return node.Update(node.
OperatorKind
, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type);
Compilation\CSharpSemanticModel.cs (5)
2007
UnaryOperatorKind operatorKind = @operator.
OperatorKind
;
3795
UnaryOperatorKind operandType = unaryOperator.
OperatorKind
.OperandTypes();
3796
isDynamic = unaryOperator.
OperatorKind
.IsDynamic();
3808
UnaryOperatorKind op = unaryOperator.
OperatorKind
.Operator();
3810
OperatorFacts.UnaryOperatorNameFromOperatorKind(op, isChecked: unaryOperator.
OperatorKind
.IsChecked()),
FlowAnalysis\AbstractFlowPass.cs (1)
2760
if (node.
OperatorKind
== UnaryOperatorKind.BoolLogicalNegation)
FlowAnalysis\NullableWalker.cs (4)
11288
switch (node.
OperatorKind
)
11312
if (node.
OperatorKind
.IsUserDefined() &&
11319
bool isLifted = node.
OperatorKind
.IsLifted();
11351
TypeWithState.Create(node.Type, node.
OperatorKind
.IsLifted() ? argumentResult.State : NullableFlowState.NotNull);
Generated\BoundNodes.xml.Generated.cs (5)
1213
if (operatorKind != this.
OperatorKind
|| operand != this.Operand || constantValueOpt != this.ConstantValueOpt || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(methodOpt, this.MethodOpt) || !TypeSymbol.Equals(constrainedToTypeOpt, this.ConstrainedToTypeOpt, TypeCompareKind.ConsiderEverything) || resultKind != this.ResultKind || originalUserDefinedOperatorsOpt != this.OriginalUserDefinedOperatorsOpt || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
10971
return node.Update(node.
OperatorKind
, operand, node.ConstantValueOpt, node.MethodOpt, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, type);
12554
updatedNode = node.Update(node.
OperatorKind
, operand, node.ConstantValueOpt, methodOpt, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, infoAndType.Type!);
12559
updatedNode = node.Update(node.
OperatorKind
, operand, node.ConstantValueOpt, methodOpt, constrainedToTypeOpt, node.ResultKind, node.OriginalUserDefinedOperatorsOpt, node.Type);
15196
new TreeDumperNode("operatorKind", node.
OperatorKind
, null),
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
1137
var opKind = node.
OperatorKind
;
1185
if (node.
OperatorKind
.OperandTypes() == UnaryOperatorKind.Enum && (opKind & UnaryOperatorKind.Lifted) != 0)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
721
if (_inExpressionLambda && node.
OperatorKind
.IsDynamic())
Lowering\DiagnosticsPass_Warnings.cs (1)
737
if (!node.
OperatorKind
.IsLifted())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
623
Debug.Assert(applyParentUnaryOperator == null || applyParentUnaryOperator.
OperatorKind
== testOperator);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (4)
31
switch (node.
OperatorKind
.Operator())
51
if (node.
OperatorKind
== UnaryOperatorKind.DynamicTrue && binaryOperator.OperatorKind == BinaryOperatorKind.DynamicLogicalOr ||
52
node.
OperatorKind
== UnaryOperatorKind.DynamicFalse && binaryOperator.OperatorKind == BinaryOperatorKind.DynamicLogicalAnd)
59
return MakeUnaryOperator(node, node.
OperatorKind
, node.Syntax, node.MethodOpt, node.ConstrainedToTypeOpt, loweredOperand, node.Type);
Lowering\MethodToClassRewriter.cs (1)
283
node.
OperatorKind
,
Lowering\SpillSequenceSpiller.cs (1)
1508
return UpdateExpression(builder, node.Update(node.
OperatorKind
, operand, node.ConstantValueOpt, node.MethodOpt, node.ConstrainedToTypeOpt, node.ResultKind, node.Type));
Operations\CSharpOperationFactory.cs (3)
1433
UnaryOperatorKind unaryOperatorKind = Helper.DeriveUnaryOperatorKind(boundUnaryOperator.
OperatorKind
);
1439
bool isLifted = boundUnaryOperator.
OperatorKind
.IsLifted();
1440
bool isChecked = boundUnaryOperator.
OperatorKind
.IsChecked() || (boundUnaryOperator.MethodOpt is not null && SyntaxFacts.IsCheckedOperator(boundUnaryOperator.MethodOpt.Name));