9 overrides of IsMetadataOptional
Microsoft.CodeAnalysis.CSharp (9)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
80internal override bool IsMetadataOptional => false;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
596internal override bool IsMetadataOptional
Symbols\SignatureOnlyParameterSymbol.cs (1)
77internal override bool IsMetadataOptional { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourceClonedParameterSymbol.cs (1)
57internal override bool IsMetadataOptional
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1508internal override bool IsMetadataOptional
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
53internal override bool IsMetadataOptional
Symbols\Source\ThisParameterSymbol.cs (1)
33internal sealed override bool IsMetadataOptional
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
73internal override bool IsMetadataOptional
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
104internal override bool IsMetadataOptional
12 references to IsMetadataOptional
Microsoft.CodeAnalysis.CSharp (6)
Emitter\Model\ParameterSymbolAdapter.cs (1)
117return AdaptedParameterSymbol.IsMetadataOptional;
Emitter\NoPia\EmbeddedParameter.cs (1)
69return UnderlyingParameter.AdaptedParameterSymbol.IsMetadataOptional;
Symbols\ParameterSymbol.cs (1)
166return !IsParams && IsMetadataOptional &&
Symbols\Source\SourceClonedParameterSymbol.cs (1)
62return _suppressOptional ? _originalParam.HasOptionalAttribute : _originalParam.IsMetadataOptional;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
394internal override bool IsMetadataOptional => _baseParameterForAttributes?.IsMetadataOptional ?? base.IsMetadataOptional;
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
106get { return _underlyingParameter.IsMetadataOptional; }
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\PEParameterSymbolTests.cs (5)
111Assert.True(x.IsMetadataOptional); 115Assert.True(y.IsMetadataOptional); 119Assert.True(z.IsMetadataOptional); 126Assert.True(x1.IsMetadataOptional); 133Assert.True(y2.IsMetadataOptional);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
116Assert.False(symbol.IsMetadataOptional);