45 instantiations of BoundDefaultExpression
Microsoft.CodeAnalysis.CSharp (45)
Binder\Binder_Conversions.cs (1)
324
source = new
BoundDefaultExpression
(source.Syntax, targetType: null, constantValue, type: destination)
Binder\Binder_Expressions.cs (1)
393
result = new
BoundDefaultExpression
(
Binder\Binder_Invocation.cs (7)
1454
defaultValue = new
BoundDefaultExpression
(syntax, parameterType) { WasCompilerGenerated = true };
1461
var unknownArgument = new
BoundDefaultExpression
(syntax, parameterType) { WasCompilerGenerated = true };
1470
var dispatchArgument = new
BoundDefaultExpression
(syntax, parameterType) { WasCompilerGenerated = true };
1672
return new
BoundDefaultExpression
(syntax, parameterType) { WasCompilerGenerated = true };
1727
defaultValue = new
BoundDefaultExpression
(syntax, parameterType) { WasCompilerGenerated = true };
1732
defaultValue = new
BoundDefaultExpression
(syntax, parameterType) { WasCompilerGenerated = true };
1755
defaultValue = new
BoundDefaultExpression
(syntax, parameterType) { WasCompilerGenerated = true };
Binder\Binder_Operators.cs (1)
5446
operand = new
BoundDefaultExpression
(operand.Syntax, targetType: null, constantValueOpt: ConstantValue.Null,
Binder\Binder_Statements.cs (1)
3052
arg = new
BoundDefaultExpression
(interactiveInitializerMethod.GetNonNullSyntaxNode(), interactiveInitializerMethod.ResultType);
Binder\Binder_TupleOperators.cs (1)
340
return new
BoundDefaultExpression
(expr.Syntax, targetType);
CodeGen\Optimizer.cs (1)
1669
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)
2889
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)
1336
return new
BoundDefaultExpression
(syntax, type);
1410
return new
BoundDefaultExpression
(syntax, type);
1417
value: new
BoundDefaultExpression
(syntax, type),
1483
BoundExpression alternative = new
BoundDefaultExpression
(syntax, type);
1665
return new
BoundDefaultExpression
(syntax, nullableBoolType);
1709
BoundExpression nullBool = new
BoundDefaultExpression
(syntax, alwaysNull.Type);
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
677
BoundLocal inlineArrayLocal = _factory.StoreToTemp(new
BoundDefaultExpression
(syntax, inlineArrayType), out assignmentToTemp);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (9)
392
return new
BoundDefaultExpression
(syntax, rewrittenType);
408
return new
BoundDefaultExpression
(syntax, rewrittenType);
417
return new
BoundDefaultExpression
(syntax, rewrittenType);
436
return new
BoundDefaultExpression
(syntax, rewrittenType);
499
return new
BoundDefaultExpression
(syntax, rewrittenType);
1253
BoundExpression alternative = new
BoundDefaultExpression
(syntax, type);
1282
return new
BoundDefaultExpression
(syntax, type);
1318
return new
BoundDefaultExpression
(syntax, type);
1529
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!);
342
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)
376
value = new
BoundDefaultExpression
(expr.Syntax, expr.Type.StrippedType());
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (4)
217
BoundExpression alternative = new
BoundDefaultExpression
(syntax, type);
253
return new
BoundDefaultExpression
(syntax, type);
851
BoundExpression alternative = new
BoundDefaultExpression
(syntax, type);
1008
BoundExpression alternative = new
BoundDefaultExpression
(syntax, operand.Type);
Lowering\SyntheticBoundNodeFactory.cs (1)
1586
return new
BoundDefaultExpression
(syntax, type) { WasCompilerGenerated = true };
23 references to BoundDefaultExpression
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Expressions.cs (1)
8160
if ((boundLeft is BoundDefaultLiteral || boundLeft is
BoundDefaultExpression
) && boundLeft.ConstantValueOpt == ConstantValue.Null &&
Binder\Binder_Invocation.cs (2)
1461
var
unknownArgument = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true };
1470
var
dispatchArgument = new BoundDefaultExpression(syntax, parameterType) { WasCompilerGenerated = true };
BoundTree\BoundNode_Source.cs (1)
335
case
BoundDefaultExpression
_:
BoundTree\BoundTreeVisitors.cs (1)
58
return VisitDefaultExpression(node as
BoundDefaultExpression
, arg);
CodeGen\EmitExpression.cs (2)
218
EmitDefaultExpression((
BoundDefaultExpression
)expression, used);
3508
private void EmitDefaultExpression(
BoundDefaultExpression
expression, bool used)
FlowAnalysis\AbstractFlowPass.cs (1)
3532
public override BoundNode VisitDefaultExpression(
BoundDefaultExpression
node)
FlowAnalysis\FlowAnalysisPass.cs (1)
84
var
trailingExpression = new BoundDefaultExpression(method.GetNonNullSyntaxNode(), submissionResultType);
FlowAnalysis\NullableWalker.cs (1)
13037
public override BoundNode? VisitDefaultExpression(
BoundDefaultExpression
node)
Generated\BoundNodes.xml.Generated.cs (10)
2885
public
BoundDefaultExpression
Update(BoundTypeExpression? targetType, ConstantValue? constantValueOpt, TypeSymbol type)
2889
var
result = new BoundDefaultExpression(this.Syntax, targetType, constantValueOpt, type, this.HasErrors);
9238
return VisitDefaultExpression((
BoundDefaultExpression
)node, arg);
9649
public virtual R VisitDefaultExpression(
BoundDefaultExpression
node, A arg) => this.DefaultVisit(node, arg);
9890
public virtual BoundNode? VisitDefaultExpression(
BoundDefaultExpression
node) => this.DefaultVisit(node);
10309
public override BoundNode? VisitDefaultExpression(
BoundDefaultExpression
node) => null;
11568
public override BoundNode? VisitDefaultExpression(
BoundDefaultExpression
node)
13690
public override BoundNode? VisitDefaultExpression(
BoundDefaultExpression
node)
13693
BoundDefaultExpression
updatedNode;
16109
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)
107
return CreateBoundDefaultExpressionOperation((
BoundDefaultExpression
)boundNode);
1367
private IDefaultValueOperation CreateBoundDefaultExpressionOperation(
BoundDefaultExpression
boundDefaultExpression)