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