11 overrides of DefaultValueFromAttributes
Microsoft.CodeAnalysis.CSharp (11)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
84
internal override ConstantValue?
DefaultValueFromAttributes
=> null;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
572
internal sealed override ConstantValue?
DefaultValueFromAttributes
=> null;
Symbols\SignatureOnlyParameterSymbol.cs (1)
81
internal override ConstantValue
DefaultValueFromAttributes
{ get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourceClonedParameterSymbol.cs (1)
84
internal override ConstantValue?
DefaultValueFromAttributes
Symbols\Source\SourceComplexParameterSymbol.cs (1)
112
internal sealed override ConstantValue?
DefaultValueFromAttributes
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
160
internal override ConstantValue?
DefaultValueFromAttributes
Symbols\Source\ThisParameterSymbol.cs (1)
28
internal sealed override ConstantValue?
DefaultValueFromAttributes
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
480
internal override ConstantValue?
DefaultValueFromAttributes
=> null;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
255
internal override ConstantValue?
DefaultValueFromAttributes
=> null;
417
internal override ConstantValue?
DefaultValueFromAttributes
=> _baseParameterForAttributes?.DefaultValueFromAttributes ?? ConstantValue.NotAvailable;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
84
internal sealed override ConstantValue?
DefaultValueFromAttributes
8 references to DefaultValueFromAttributes
Microsoft.CodeAnalysis.CSharp (6)
Symbols\Source\SourceClonedParameterSymbol.cs (2)
80
return _suppressOptional ? _originalParam.
DefaultValueFromAttributes
: _originalParam.ExplicitDefaultConstantValue;
86
get { return _originalParam.
DefaultValueFromAttributes
; }
Symbols\Source\SourceParameterSymbolBase.cs (1)
91
sourceParameter.
DefaultValueFromAttributes
== ConstantValue.NotAvailable)
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
208
DefaultValueFromAttributes
== ConstantValue.NotAvailable &&
417
internal override ConstantValue? DefaultValueFromAttributes => _baseParameterForAttributes?.
DefaultValueFromAttributes
?? ConstantValue.NotAvailable;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
86
get { return _underlyingParameter.
DefaultValueFromAttributes
; }
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\LambdaTests.cs (2)
4876
Assert.Equal(2, parameter.
DefaultValueFromAttributes
.Value);
4931
Assert.Equal(new DateTime(638004778421967416L), parameter.
DefaultValueFromAttributes
.Value);