4 instantiations of BoundUnaryOperator
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Operators.cs (1)
2801return new BoundUnaryOperator(
Generated\BoundNodes.xml.Generated.cs (1)
1215var 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)
1641return new BoundUnaryOperator(expression.Syntax, UnaryOperatorKind.BoolLogicalNegation, expression, null, null, constrainedToTypeOpt: null, LookupResultKind.Viable, expression.Type);
47 references to BoundUnaryOperator
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder.ValueChecks.cs (6)
3590Debug.Assert(expr is BoundUnaryOperator unaryOperator && 3960Debug.Assert(expr is BoundUnaryOperator unaryOperator && 4304var unaryOperator = (BoundUnaryOperator)expr; 5073var 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)
718public 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)
1940if (IsUserDefinedTrueOrFalse((BoundUnaryOperator)highestBoundExpr)) 2013private static bool IsUserDefinedTrueOrFalse(BoundUnaryOperator @operator) 3560GetSymbolsAndResultKind((BoundUnaryOperator)boundNode, out isDynamic, ref resultKind, ref symbols); 3802private static void GetSymbolsAndResultKind(BoundUnaryOperator unaryOperator, out bool isDynamic, ref LookupResultKind resultKind, ref OneOrMany<Symbol> symbols)
FlowAnalysis\AbstractFlowPass.cs (1)
2765public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
FlowAnalysis\NullableWalker.cs (1)
11376public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node)
Generated\BoundNodes.xml.Generated.cs (10)
1211public BoundUnaryOperator Update(UnaryOperatorKind operatorKind, BoundExpression operand, ConstantValue? constantValueOpt, MethodSymbol? methodOpt, TypeSymbol? constrainedToTypeOpt, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalUserDefinedOperatorsOpt, TypeSymbol type) 1215var result = new BoundUnaryOperator(this.Syntax, operatorKind, operand, constantValueOpt, methodOpt, constrainedToTypeOpt, resultKind, originalUserDefinedOperatorsOpt, type, this.HasErrors); 8918return VisitUnaryOperator((BoundUnaryOperator)node, arg); 9364public virtual R VisitUnaryOperator(BoundUnaryOperator node, A arg) => this.DefaultVisit(node, arg); 9600public virtual BoundNode? VisitUnaryOperator(BoundUnaryOperator node) => this.DefaultVisit(node); 9877public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node) 10975public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node) 12688public override BoundNode? VisitUnaryOperator(BoundUnaryOperator node) 12694BoundUnaryOperator updatedNode; 15337public 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)
733private void CheckDynamic(BoundUnaryOperator node) 749public 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) 190BoundUnaryOperator? applyParentUnaryOperator = null) 206BoundUnaryOperator? applyParentUnaryOperator = null) 610BoundUnaryOperator? applyParentUnaryOperator)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
29public override BoundNode VisitUnaryOperator(BoundUnaryOperator node) 74BoundUnaryOperator? oldNode,
Lowering\SpillSequenceSpiller.cs (1)
1504public override BoundNode VisitUnaryOperator(BoundUnaryOperator node)
Operations\CSharpOperationFactory.cs (2)
126return CreateBoundUnaryOperatorOperation((BoundUnaryOperator)boundNode); 1431private IUnaryOperation CreateBoundUnaryOperatorOperation(BoundUnaryOperator boundUnaryOperator)