5 references to GetDefaultValue
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
3124
return destination.
GetDefaultValue
();
Binder\Binder_Expressions.cs (1)
1535
return new BoundDefaultExpression(node, typeExpression, constantValueOpt: type.
GetDefaultValue
(), type);
BoundTree\Constructors.cs (1)
680
: this(syntax, targetType: null, type.
GetDefaultValue
(), type, hasErrors)
CodeGen\EmitExpression.cs (2)
3438
var constantValue = type.
GetDefaultValue
();
3467
expression.Type.
GetDefaultValue
() == null, "constant should be set on this expression");