2 overrides of ParameterCount
Microsoft.CodeAnalysis.VisualBasic (2)
Semantics\OverloadResolution.vb (2)
171Public Overrides ReadOnly Property ParameterCount As Integer 410Public Overrides ReadOnly Property ParameterCount As Integer
43 references to ParameterCount
Microsoft.CodeAnalysis.VisualBasic (43)
Binding\Binder_Delegates.vb (1)
786Dim candidateParameterCount = bestCandidate.ParameterCount
Binding\Binder_Invocation.vb (14)
1503(Not queryMode OrElse singleCandidate.ParameterCount <= boundArguments.Length) Then 1596singleCandidate.ParameterCount <> 0 AndAlso 1597singleCandidate.Parameters(singleCandidate.ParameterCount - 1).IsParamArray) 2018Dim parameterToArgumentMap As ArrayBuilder(Of Integer) = ArrayBuilder(Of Integer).GetInstance(candidate.ParameterCount, -1) 2053If paramIndex = candidate.ParameterCount - 1 AndAlso candidate.Parameters(paramIndex).IsParamArray Then 2060If paramIndex = candidate.ParameterCount Then 2076ElseIf paramIndex = candidate.ParameterCount - 1 AndAlso 2146If paramIndex = candidate.ParameterCount - 1 AndAlso 2292For paramIndex = 0 To candidate.ParameterCount - 1 Step 1 2300If param.IsParamArray AndAlso paramIndex = candidate.ParameterCount - 1 Then 2638Dim paramCount As Integer = candidate.Candidate.ParameterCount 2679paramIndex = candidate.Candidate.ParameterCount - 1) Then 2702If candidate.IsExpandedParamArrayForm AndAlso paramIndex = candidate.Candidate.ParameterCount - 1 Then 2726If argument IsNot Nothing AndAlso paramIndex = candidate.Candidate.ParameterCount - 1 AndAlso
Semantics\OverloadResolution.vb (28)
100maxCount = Me.ParameterCount 120For i As Integer = 0 To Me.ParameterCount - 1 Step 1 1438Debug.Assert(newCandidate.Candidate.ParameterCount >= argumentCount OrElse newCandidate.IsExpandedParamArrayForm) 1457Debug.Assert(existingCandidate.Candidate.ParameterCount >= argumentCount OrElse existingCandidate.IsExpandedParamArrayForm) 1478If existingCandidate.Candidate.ParameterCount <> newCandidate.Candidate.ParameterCount Then 1483Debug.Assert(argumentCount = existingCandidate.Candidate.ParameterCount) 2173If left.Candidate.ParameterCount <> right.Candidate.ParameterCount Then 2176For k As Integer = 0 To left.Candidate.ParameterCount - 1 Step 1 3043parameterToArgumentMap = ArrayBuilder(Of Integer).GetInstance(candidate.Candidate.ParameterCount, -1) 3084If paramIndex = candidate.Candidate.ParameterCount - 1 AndAlso 3102If paramIndex = candidate.Candidate.ParameterCount - 1 AndAlso 3114paramIndex = candidate.Candidate.ParameterCount - 1) Then 3151If paramIndex = candidate.Candidate.ParameterCount - 1 AndAlso 3281For paramIndex = 0 To candidate.Candidate.ParameterCount - 1 Step 1 3292If param.IsParamArray AndAlso paramIndex = candidate.Candidate.ParameterCount - 1 Then 3510optionalArguments = New OptionalArgument(candidate.Candidate.ParameterCount - 1) {} 4218candidateAnalysis.ExpandedParamArrayArgumentsUsed = Math.Max(arguments.Length - candidate.Candidate.ParameterCount + 1, 0) 4290Debug.Assert(newCandidate.Candidate.ParameterCount >= argumentCount OrElse newCandidate.IsExpandedParamArrayForm) 4349Debug.Assert(existingCandidate.Candidate.ParameterCount >= argumentCount OrElse existingCandidate.IsExpandedParamArrayForm) 4363If existingCandidate.Candidate.ParameterCount <> newCandidate.Candidate.ParameterCount Then 4367Debug.Assert(argumentCount = existingCandidate.Candidate.ParameterCount) 4490For j As Integer = 0 To existingCandidate.Candidate.ParameterCount - 1 Step 1 5206paramIndex = candidate.Candidate.ParameterCount - 1 AndAlso 5233paramIndex = candidate.Candidate.ParameterCount - 1 AndAlso 5247paramIndex = candidate.Candidate.ParameterCount - 1) Then