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