4 instantiations of BoundUnaryOperator
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Operators.cs (1)
2796return new BoundUnaryOperator(
Generated\BoundNodes.xml.Generated.cs (1)
1214var result = new BoundUnaryOperator(this.Syntax, operatorKind, operand, constantValueOpt, methodOpt, constrainedToTypeOpt, resultKind, originalUserDefinedOperatorsOpt, type, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
175new BoundUnaryOperator(syntax, kind, loweredOperand, null, methodOpt: method, constrainedToTypeOpt: constrainedToTypeOpt, LookupResultKind.Viable, type);
Lowering\SyntheticBoundNodeFactory.cs (1)
1623return new BoundUnaryOperator(expression.Syntax, UnaryOperatorKind.BoolLogicalNegation, expression, null, null, constrainedToTypeOpt: null, LookupResultKind.Viable, expression.Type);
48 references to BoundUnaryOperator
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder.ValueChecks.cs (6)
3612Debug.Assert(expr is BoundUnaryOperator unaryOperator && 3982Debug.Assert(expr is BoundUnaryOperator unaryOperator && 4327var unaryOperator = (BoundUnaryOperator)expr; 5090var unary = (BoundUnaryOperator)expr;
BoundTree\BoundExpression.cs (1)
605return this.Condition.Kind == BoundKind.UnaryOperator && ((BoundUnaryOperator)this.Condition).OperatorKind.IsDynamic();
BoundTree\BoundNode_Source.cs (1)
314case BoundUnaryOperator unary:
BoundTree\BoundTreeVisitors.cs (1)
38return VisitUnaryOperator(node as BoundUnaryOperator, arg);
BoundTree\Constructors.cs (1)
756public BoundUnaryOperator Update(UnaryOperatorKind operatorKind,
CodeGen\EmitExpression.cs (1)
198EmitUnaryOperatorExpression((BoundUnaryOperator)expression, used);
CodeGen\EmitOperators.cs (3)
17private void EmitUnaryOperatorExpression(BoundUnaryOperator expression, bool used) 573while (condition is BoundUnaryOperator unOp) 581private void EmitUnaryCheckedOperatorExpression(BoundUnaryOperator expression, bool used)
CodeGen\EmitStatement.cs (2)
576var unOp = (BoundUnaryOperator)condition;
CodeGen\Optimizer.cs (1)
1652public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
Compilation\CSharpSemanticModel.cs (4)
1932if (IsUserDefinedTrueOrFalse((BoundUnaryOperator)highestBoundExpr)) 2005private static bool IsUserDefinedTrueOrFalse(BoundUnaryOperator @operator) 3551GetSymbolsAndResultKind((BoundUnaryOperator)boundNode, out isDynamic, ref resultKind, ref symbols); 3793private static void GetSymbolsAndResultKind(BoundUnaryOperator unaryOperator, out bool isDynamic, ref LookupResultKind resultKind, ref OneOrMany<Symbol> symbols)
FlowAnalysis\AbstractFlowPass.cs (1)
2754public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
FlowAnalysis\NullableWalker.cs (1)
11224public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node)
Generated\BoundNodes.xml.Generated.cs (10)
1210public BoundUnaryOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue? constantValueOpt, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type) 1214var result = new BoundUnaryOperator(this.Syntax, operatorKind, operand, constantValueOpt, methodOpt, constrainedToTypeOpt, resultKind, originalUserDefinedOperatorsOpt, type, this.HasErrors); 8883return VisitUnaryOperator((BoundUnaryOperator)node, arg); 9329public virtual R VisitUnaryOperator(BoundUnaryOperator node, A arg) => this.DefaultVisit(node, arg); 9565public virtual BoundNode? VisitUnaryOperator(BoundUnaryOperator node) => this.DefaultVisit(node); 9842public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node) 10929public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node) 12507public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node) 12513BoundUnaryOperator updatedNode; 15157public override TreeDumperNode VisitUnaryOperator(BoundUnaryOperator node, object? arg) => new TreeDumperNode("unaryOperator", null, new TreeDumperNode[]
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
237return VisitUnaryOperator((BoundUnaryOperator)node); 1133private BoundExpression VisitUnaryOperator(BoundUnaryOperator node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
719private void CheckDynamic(BoundUnaryOperator node) 735public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
Lowering\DiagnosticsPass_Warnings.cs (1)
733private void CheckLiftedUnaryOp(BoundUnaryOperator node)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
113public BoundExpression VisitBinaryOperator(BoundBinaryOperator node, BoundUnaryOperator? applyParentUnaryOperator) 184BoundUnaryOperator? applyParentUnaryOperator = null) 200BoundUnaryOperator? applyParentUnaryOperator = null) 604BoundUnaryOperator? applyParentUnaryOperator)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
29public override BoundNode VisitUnaryOperator(BoundUnaryOperator node) 74BoundUnaryOperator? oldNode,
Lowering\MethodToClassRewriter.cs (1)
281public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
Lowering\SpillSequenceSpiller.cs (1)
1504public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
Operations\CSharpOperationFactory.cs (2)
126return CreateBoundUnaryOperatorOperation((BoundUnaryOperator)boundNode); 1431private IUnaryOperation CreateBoundUnaryOperatorOperation(BoundUnaryOperator boundUnaryOperator)