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