20 references to IsParams
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Conversions.cs (2)
2375
if (lambdaParameter.
IsParams
&& !delegateParameter.
IsParams
&& p == lambdaSymbol.ParameterCount - 1)
Binder\Binder_Expressions.cs (1)
9636
return !parameter.IsOptional && !parameter.
IsParams
;
Binder\Binder_Invocation.cs (1)
1536
Debug.Assert(!expanded || parameters[^1].
IsParams
);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
504
Debug.Assert(method.Parameters.All(p => p.IsOptional || p.
IsParams
));
Symbols\MemberSymbolExtensions.cs (1)
27
return !@params.IsEmpty && @params.Last().
IsParams
;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1131
return !parameter.
IsParams
;
Symbols\MethodSymbolExtensions.cs (1)
18
return method.ParameterCount != 0 && method.Parameters[method.ParameterCount - 1].
IsParams
;
Symbols\ParameterSymbol.cs (1)
161
return !
IsParams
&& IsMetadataOptional &&
Symbols\PropertySymbolExtensions.cs (1)
15
return property.ParameterCount != 0 && property.Parameters[property.ParameterCount - 1].
IsParams
;
Symbols\PublicModel\ParameterSymbol.cs (1)
65
bool IParameterSymbol.IsParams => _underlying.
IsParams
;
Symbols\Source\CustomModifierUtils.cs (4)
135
(alsoCopyParamsModifier && (sourceParameter.
IsParams
!= destinationParameter.
IsParams
)))
143
bool newParams = alsoCopyParamsModifier ? sourceParameter.
IsParams
: destinationParameter.
IsParams
;
Symbols\Source\ParameterHelpers.cs (2)
193
Debug.Assert(parameter is SourceComplexParameterSymbolBase || !parameter.
IsParams
); // Only SourceComplexParameterSymbolBase validates 'params' type.
195
ReportParameterErrors(owner, parameterSyntax, parameter.Ordinal, lastParameterIndex: lastIndex, parameter.
IsParams
, parameter.TypeWithAnnotations,
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1534
if (
IsParams
&& ParameterSyntax?.Modifiers.Any(SyntaxKind.ParamsKeyword) == true)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
73
if (this.IsVararg && (IsGenericMethod || ContainingType.IsGenericType || _lazyParameters.Length > 0 && _lazyParameters[_lazyParameters.Length - 1].
IsParams
))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
900
else if (isVararg && (IsGenericMethod || ContainingType.IsGenericType || Parameters.Length > 0 && Parameters[Parameters.Length - 1].
IsParams
))