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