41 references to BoundDefaultExpression
Microsoft.CodeAnalysis.CSharp (41)
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)
3000
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);
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)
566
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 };