10 references to HasExplicitDefaultValue
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Conversions.cs (2)
3057
if (lambdaParameter.
HasExplicitDefaultValue
&&
3060
var delegateParamDefault = delegateParameter.
HasExplicitDefaultValue
? delegateParameter.ExplicitDefaultConstantValue : null;
Binder\Binder_Expressions.cs (1)
11504
var parameterDefaultValues = parameters.Any(p => p.
HasExplicitDefaultValue
) ?
Symbols\ParameterSymbol.cs (2)
221
/// Returns the default value of the parameter. If <see cref="
HasExplicitDefaultValue
"/>
235
if (
HasExplicitDefaultValue
)
Symbols\PublicModel\ParameterSymbol.cs (1)
77
bool IParameterSymbol.HasExplicitDefaultValue => _underlying.
HasExplicitDefaultValue
;
Symbols\Source\SourceComplexParameterSymbol.cs (4)
1100
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default
1128
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default
1161
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default
1202
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default