44 instantiations of BoundDefaultExpression
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder_Conversions.cs (1)
272source = new BoundDefaultExpression(source.Syntax, targetType: null, constantValue, type: destination)
Binder\Binder_Expressions.cs (1)
356result = new BoundDefaultExpression(
Binder\Binder_Invocation.cs (7)
1389defaultValue = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true }; 1396var unknownArgument = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true }; 1405var dispatchArgument = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true }; 1604return new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true }; 1660defaultValue = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true }; 1665defaultValue = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true }; 1688defaultValue = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true };
Binder\Binder_Statements.cs (1)
3003arg = new BoundDefaultExpression(interactiveInitializerMethod.GetNonNullSyntaxNode(), interactiveInitializerMethod.ResultType);
Binder\Binder_TupleOperators.cs (1)
333return new BoundDefaultExpression(expr.Syntax, targetType);
CodeGen\Optimizer.cs (1)
1658PushEvalStack(new BoundDefaultExpression(node.Syntax, node.Operand.Type), ExprContext.Value);
FlowAnalysis\FlowAnalysisPass.cs (1)
84var trailingExpression = new BoundDefaultExpression(method.GetNonNullSyntaxNode(), submissionResultType);
Generated\BoundNodes.xml.Generated.cs (1)
2838var result = new BoundDefaultExpression(this.Syntax, targetType, constantValueOpt, type, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
61BoundExpression result = rewrittenType.IsNullableType() ? new BoundDefaultExpression(syntax, rewrittenType) : MakeLiteral(syntax, constantValue, rewrittenType);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
1317return new BoundDefaultExpression(syntax, type); 1391return new BoundDefaultExpression(syntax, type); 1398value: new BoundDefaultExpression(syntax, type), 1464BoundExpression alternative = new BoundDefaultExpression(syntax, type); 1646return new BoundDefaultExpression(syntax, nullableBoolType); 1690BoundExpression nullBool = new BoundDefaultExpression(syntax, alwaysNull.Type);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
581BoundLocal inlineArrayLocal = _factory.StoreToTemp(new BoundDefaultExpression(syntax, inlineArrayType), out assignmentToTemp);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (9)
387return new BoundDefaultExpression(syntax, rewrittenType); 403return new BoundDefaultExpression(syntax, rewrittenType); 412return new BoundDefaultExpression(syntax, rewrittenType); 431return new BoundDefaultExpression(syntax, rewrittenType); 494return new BoundDefaultExpression(syntax, rewrittenType); 1185BoundExpression alternative = new BoundDefaultExpression(syntax, type); 1214return new BoundDefaultExpression(syntax, type); 1250return new BoundDefaultExpression(syntax, type); 1457BoundExpression alternative = new BoundDefaultExpression(syntax, rewrittenType);
Lowering\LocalRewriter\LocalRewriter_Field.cs (1)
69return new BoundDefaultExpression(syntax, tupleField.Type);
Lowering\LocalRewriter\LocalRewriter_Index.cs (2)
24operand = new BoundDefaultExpression(operand.Syntax, operand.Type!.GetNullableUnderlyingType()); 49BoundExpression alternative = new BoundDefaultExpression(node.Syntax, node.Type);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
99rewrittenObjectCreation = new BoundDefaultExpression(rewrittenObjectCreation.Syntax, rewrittenObjectCreation.Type!); 337return new BoundDefaultExpression(syntax, type: typeParameter, hasErrors: true);
Lowering\LocalRewriter\LocalRewriter_Range.cs (2)
60operand = new BoundDefaultExpression(operand.Syntax, operand.Type.GetNullableUnderlyingType()); 104BoundExpression alternative = new BoundDefaultExpression(node.Syntax, node.Type);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
371value = new BoundDefaultExpression(expr.Syntax, expr.Type.StrippedType());
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (4)
216BoundExpression alternative = new BoundDefaultExpression(syntax, type); 252return new BoundDefaultExpression(syntax, type); 692BoundExpression alternative = new BoundDefaultExpression(syntax, type); 849BoundExpression alternative = new BoundDefaultExpression(syntax, operand.Type);
Lowering\SyntheticBoundNodeFactory.cs (1)
1572return new BoundDefaultExpression(syntax, type) { WasCompilerGenerated = true };
23 references to BoundDefaultExpression
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Expressions.cs (1)
7877if ((boundLeft is BoundDefaultLiteral || boundLeft is BoundDefaultExpression) && boundLeft.ConstantValueOpt == ConstantValue.Null &&
Binder\Binder_Invocation.cs (2)
1396var unknownArgument = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true }; 1405var dispatchArgument = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true };
BoundTree\BoundNode_Source.cs (1)
347case BoundDefaultExpression _:
BoundTree\BoundTreeVisitors.cs (1)
58return VisitDefaultExpression(node as BoundDefaultExpression, arg);
CodeGen\EmitExpression.cs (2)
218EmitDefaultExpression((BoundDefaultExpression)expression, used); 3464private void EmitDefaultExpression(BoundDefaultExpression expression, bool used)
FlowAnalysis\AbstractFlowPass.cs (1)
3446public override BoundNode VisitDefaultExpression(BoundDefaultExpression node)
FlowAnalysis\FlowAnalysisPass.cs (1)
84var trailingExpression = new BoundDefaultExpression(method.GetNonNullSyntaxNode(), submissionResultType);
FlowAnalysis\NullableWalker.cs (1)
11481public override BoundNode? VisitDefaultExpression(BoundDefaultExpression node)
Generated\BoundNodes.xml.Generated.cs (10)
2834public BoundDefaultExpression Update(BoundTypeExpression? targetType, ConstantValue? constantValueOpt, TypeSymbol type) 2838var result = new BoundDefaultExpression(this.Syntax, targetType, constantValueOpt, type, this.HasErrors); 8972return VisitDefaultExpression((BoundDefaultExpression)node, arg); 9374public virtual R VisitDefaultExpression(BoundDefaultExpression node, A arg) => this.DefaultVisit(node, arg); 9610public virtual BoundNode? VisitDefaultExpression(BoundDefaultExpression node) => this.DefaultVisit(node); 10022public override BoundNode? VisitDefaultExpression(BoundDefaultExpression node) => null; 11211public override BoundNode? VisitDefaultExpression(BoundDefaultExpression node) 13194public override BoundNode? VisitDefaultExpression(BoundDefaultExpression node) 13197BoundDefaultExpression updatedNode; 15585public override TreeDumperNode VisitDefaultExpression(BoundDefaultExpression node, object? arg) => new TreeDumperNode("defaultExpression", null, new TreeDumperNode[]
Lowering\Extensions.cs (1)
91if (expr is BoundDefaultLiteral || expr is BoundDefaultExpression)
Operations\CSharpOperationFactory.cs (2)
108return CreateBoundDefaultExpressionOperation((BoundDefaultExpression)boundNode); 1292private IDefaultValueOperation CreateBoundDefaultExpressionOperation(BoundDefaultExpression boundDefaultExpression)