9 overrides of ExplicitDefaultConstantValue
Microsoft.CodeAnalysis.CSharp (9)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
80internal override ConstantValue? ExplicitDefaultConstantValue => null;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
554internal override ConstantValue? ExplicitDefaultConstantValue
Symbols\SignatureOnlyParameterSymbol.cs (1)
75internal override ConstantValue ExplicitDefaultConstantValue { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourceClonedParameterSymbol.cs (1)
72internal override ConstantValue ExplicitDefaultConstantValue
Symbols\Source\SourceComplexParameterSymbol.cs (1)
90internal sealed override ConstantValue ExplicitDefaultConstantValue
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
48internal override ConstantValue? ExplicitDefaultConstantValue
Symbols\Source\ThisParameterSymbol.cs (1)
23internal sealed override ConstantValue? ExplicitDefaultConstantValue
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
83internal override ConstantValue? ExplicitDefaultConstantValue
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
79internal sealed override ConstantValue? ExplicitDefaultConstantValue
22 references to ExplicitDefaultConstantValue
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Conversions.cs (3)
2326if (delegateParameter.ExplicitDefaultConstantValue is { } defaultValue && 2365lambdaParameter.ExplicitDefaultConstantValue is { IsBad: false } lambdaParamDefault) 2367var delegateParamDefault = delegateParameter.HasExplicitDefaultValue ? delegateParameter.ExplicitDefaultConstantValue : null;
Binder\Binder_Invocation.cs (1)
1607var parameterDefaultValue = parameter.ExplicitDefaultConstantValue;
Binder\Semantics\Conversions\Conversions.cs (1)
75var defaultValue = p.ExplicitDefaultConstantValue;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
518x.ExplicitDefaultConstantValue == y.ExplicitDefaultConstantValue &&
Emitter\Model\ParameterSymbolAdapter.cs (4)
84ConstantValue constant = AdaptedParameterSymbol.ExplicitDefaultConstantValue; 243return this.ExplicitDefaultConstantValue != null && 244this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_Decimal && 245this.ExplicitDefaultConstantValue.SpecialType != SpecialType.System_DateTime;
FlowAnalysis\NullableWalker.cs (1)
2898isDefaultValue: parameter.ExplicitDefaultConstantValue?.IsNull == true);
Lowering\SynthesizedMethodBaseSymbol.cs (1)
144p.ExplicitDefaultConstantValue,
Symbols\MemberSignatureComparer.cs (2)
785if (considerDefaultValues && param1.ExplicitDefaultConstantValue != param2.ExplicitDefaultConstantValue)
Symbols\ParameterSymbol.cs (3)
196[MemberNotNullWhen(true, nameof(ExplicitDefaultConstantValue))] 211return IsOptional && ExplicitDefaultConstantValue != null; 232return ExplicitDefaultConstantValue.Value;
Symbols\Source\SourceClonedParameterSymbol.cs (1)
77return _suppressOptional ? _originalParam.DefaultValueFromAttributes : _originalParam.ExplicitDefaultConstantValue;
Symbols\Source\SourceParameterSymbolBase.cs (1)
85var defaultValue = this.ExplicitDefaultConstantValue;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
316oldParam.ExplicitDefaultConstantValue,
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
81get { return _underlyingParameter.ExplicitDefaultConstantValue; }