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