12 references to IsOptional
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder_Await.cs (1)
484
return parameter.
IsOptional
;
Binder\Binder_Expressions.cs (2)
3816
if (parameter.
IsOptional
||
9639
return !parameter.
IsOptional
&& !parameter.IsParams;
Binder\Binder_Invocation.cs (1)
1545
Debug.Assert(parameter.
IsOptional
);
Binder\ForEachLoopBinder.cs (1)
1090
if (getEnumeratorMethod?.Parameters[0].
IsOptional
== false)
Binder\Semantics\OverloadResolution\OverloadResolution_ArgsToParameters.cs (1)
394
return !isMethodGroupConversion && parameter.
IsOptional
;
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
504
Debug.Assert(method.Parameters.All(p => p.
IsOptional
|| p.IsParams));
Symbols\Attributes\SourceAttributeData.cs (1)
152
Debug.Assert(this.AttributeConstructor.Parameters[parameterIndex].
IsOptional
||
Symbols\ParameterSymbol.cs (2)
191
/// <see cref="
IsOptional
"/> to determine if the parameter will be considered optional by
211
return
IsOptional
&& ExplicitDefaultConstantValue != null;
Symbols\PublicModel\ParameterSymbol.cs (1)
71
bool IParameterSymbol.IsOptional => _underlying.
IsOptional
;
Symbols\Source\SourceComplexParameterSymbol.cs (1)
906
if (this.RefKind == RefKind.RefReadOnlyParameter && this.
IsOptional
&& this.ParameterSyntax.Default is null)