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