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