10 references to HasExplicitDefaultValue
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Conversions.cs (2)
2364
if (lambdaParameter.
HasExplicitDefaultValue
&&
2367
var delegateParamDefault = delegateParameter.
HasExplicitDefaultValue
? delegateParameter.ExplicitDefaultConstantValue : null;
Binder\Binder_Expressions.cs (1)
10807
var parameterDefaultValues = parameters.Any(p => p.
HasExplicitDefaultValue
) ?
Symbols\ParameterSymbol.cs (2)
216
/// Returns the default value of the parameter. If <see cref="
HasExplicitDefaultValue
"/>
230
if (
HasExplicitDefaultValue
)
Symbols\PublicModel\ParameterSymbol.cs (1)
77
bool IParameterSymbol.HasExplicitDefaultValue => _underlying.
HasExplicitDefaultValue
;
Symbols\Source\SourceComplexParameterSymbol.cs (4)
1076
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default
1104
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default
1137
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default
1178
else if (!
HasExplicitDefaultValue
&& !ContainingSymbol.IsPartialImplementation()) // attribute applied to parameter without default