9 overrides of ExplicitDefaultConstantValue
Microsoft.CodeAnalysis.CSharp (9)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
83
internal override ConstantValue?
ExplicitDefaultConstantValue
=> null;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
573
internal sealed override ConstantValue?
ExplicitDefaultConstantValue
Symbols\SignatureOnlyParameterSymbol.cs (1)
79
internal override ConstantValue
ExplicitDefaultConstantValue
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourceClonedParameterSymbol.cs (1)
75
internal override ConstantValue?
ExplicitDefaultConstantValue
Symbols\Source\SourceComplexParameterSymbol.cs (1)
94
internal sealed override ConstantValue?
ExplicitDefaultConstantValue
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
48
internal override ConstantValue?
ExplicitDefaultConstantValue
Symbols\Source\ThisParameterSymbol.cs (1)
23
internal sealed override ConstantValue?
ExplicitDefaultConstantValue
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
83
internal override ConstantValue?
ExplicitDefaultConstantValue
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
76
internal sealed override ConstantValue?
ExplicitDefaultConstantValue
24 references to ExplicitDefaultConstantValue
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (3)
3018
if (delegateParameter.
ExplicitDefaultConstantValue
is { } defaultValue &&
3057
lambdaParameter.
ExplicitDefaultConstantValue
is { IsBad: false } lambdaParamDefault)
3059
var delegateParamDefault = delegateParameter.HasExplicitDefaultValue ? delegateParameter.
ExplicitDefaultConstantValue
: null;
Binder\Binder_Expressions.cs (1)
12206
parameters.SelectAsArray(p => p.
ExplicitDefaultConstantValue
) :
Binder\Binder_Invocation.cs (1)
1700
var parameterDefaultValue = parameter.
ExplicitDefaultConstantValue
;
Binder\Semantics\Conversions\Conversions.cs (1)
75
var defaultValue = p.
ExplicitDefaultConstantValue
;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
532
x.
ExplicitDefaultConstantValue
== y.
ExplicitDefaultConstantValue
&&
Emitter\Model\ParameterSymbolAdapter.cs (4)
84
ConstantValue constant = AdaptedParameterSymbol.
ExplicitDefaultConstantValue
;
243
return this.
ExplicitDefaultConstantValue
!= null &&
244
this.
ExplicitDefaultConstantValue
.SpecialType != SpecialType.System_Decimal &&
245
this.
ExplicitDefaultConstantValue
.SpecialType != SpecialType.System_DateTime;
FlowAnalysis\NullableWalker.cs (1)
3065
isDefaultValue: parameter.
ExplicitDefaultConstantValue
?.IsNull == true);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
129
p.
ExplicitDefaultConstantValue
,
Symbols\MemberSignatureComparer.cs (2)
772
if (considerDefaultValues && param1.
ExplicitDefaultConstantValue
!= param2.
ExplicitDefaultConstantValue
)
Symbols\ParameterSymbol.cs (3)
202
[MemberNotNullWhen(true, nameof(
ExplicitDefaultConstantValue
))]
217
return IsOptional &&
ExplicitDefaultConstantValue
!= null;
238
return
ExplicitDefaultConstantValue
.Value;
Symbols\Source\SourceClonedParameterSymbol.cs (1)
80
return _suppressOptional ? _originalParam.DefaultValueFromAttributes : _originalParam.
ExplicitDefaultConstantValue
;
Symbols\Source\SourceParameterSymbolBase.cs (1)
87
var defaultValue = parameter.
ExplicitDefaultConstantValue
;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
318
oldParam.
ExplicitDefaultConstantValue
,
364
Debug.Assert(baseParameterForAttributes is null || baseParameterForAttributes.
ExplicitDefaultConstantValue
== defaultValue);
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
78
get { return _underlyingParameter.
ExplicitDefaultConstantValue
; }