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