5 references to GetDefaultValue
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
2864return destination.GetDefaultValue();
Binder\Binder_Expressions.cs (1)
1483return 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");