12 references to GetParameterCount
Microsoft.CodeAnalysis.CSharp (12)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
1268int parameterCount = result.Member.GetParameterCount(); 1294int paramCount = member.GetParameterCount(); 2668declaredParameterCount = m.Member.GetParameterCount(); 3828int parameterCount = member.GetParameterCount() + (member.GetIsVararg() ? 1 : 0);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
1172if (method.GetIsVararg() && parm == method.GetParameterCount()) 1188bool isLastParameter = method.GetParameterCount() == parm + 1; // This is used to later decide if we need to try to unwrap a params collection
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
1225Debug.Assert(rewrittenArguments.Length == methodOrIndexer.GetParameterCount() + 1); 1238return rewrittenArguments.Length == methodOrIndexer.GetParameterCount() &&
Symbols\MemberSignatureComparer.cs (4)
455if (member1.GetParameterCount() != member2.GetParameterCount()) 468if (member1.GetParameterCount() > 0 && !HaveSameParameterTypes(member1.GetParameters().AsSpan(), typeMap1, member2.GetParameters().AsSpan(), typeMap2, 556hash = Hash.Combine(member.GetParameterCount(), hash);