5 references to GetDefaultValue
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
3124return destination.GetDefaultValue();
Binder\Binder_Expressions.cs (1)
1538return 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)
3438var constantValue = type.GetDefaultValue(); 3467expression.Type.GetDefaultValue() == null, "constant should be set on this expression");