196 references to OverloadResolution
Microsoft.CodeAnalysis.VisualBasic (196)
Binding\Binder_Attributes.vb (3)
288
Dim results As
OverloadResolution
.OverloadResolutionResult =
OverloadResolution
.MethodInvocationOverloadResolution(constructorsGroup, boundArguments, Nothing, Me, callerInfoOpt:=node.Name,
303
results =
OverloadResolution
.MethodInvocationOverloadResolution(constructorsGroup, boundArguments, Nothing, Me, includeEliminatedCandidates:=True, callerInfoOpt:=node.Name,
Binding\Binder_Conversions.vb (1)
358
Dim isTrueOperator As
OverloadResolution
.OverloadResolutionResult = Nothing
Binding\Binder_Delegates.vb (14)
222
Dim result As
OverloadResolution
.OverloadResolutionResult = Nothing
497
Dim resolutionResult =
OverloadResolution
.MethodInvocationOverloadResolution(
531
resolutionResult =
OverloadResolution
.MethodInvocationOverloadResolution(
544
Dim bestCandidates = ArrayBuilder(Of
OverloadResolution
.CandidateAnalysisResult).GetInstance()
551
Dim bestCandidatesState As
OverloadResolution
.CandidateAnalysisResultState = bestCandidates(0).State
553
If bestCandidatesState = VisualBasic.
OverloadResolution
.CandidateAnalysisResultState.Applicable Then
567
(bestCandidatesState =
OverloadResolution
.CandidateAnalysisResultState.ArgumentCountMismatch OrElse
568
bestCandidatesState =
OverloadResolution
.CandidateAnalysisResultState.ArgumentMismatch) Then
592
If bestCandidatesState =
OverloadResolution
.CandidateAnalysisResultState.HasUseSiteError OrElse
593
bestCandidatesState =
OverloadResolution
.CandidateAnalysisResultState.HasUnsupportedMetadata OrElse
594
bestCandidatesState =
OverloadResolution
.CandidateAnalysisResultState.Ambiguous Then
618
analysisResult As
OverloadResolution
.CandidateAnalysisResult,
772
bestResult As
OverloadResolution
.CandidateAnalysisResult,
785
Dim bestCandidate As
OverloadResolution
.Candidate = bestResult.Candidate
Binding\Binder_Expressions.vb (1)
4421
Dim value =
OverloadResolution
.TryFoldConstantBinaryOperator(BinaryOperatorKind.Add, upperBound, one, int32Type, integerOverflow, divideByZero, Nothing)
Binding\Binder_Invocation.vb (45)
746
Dim results As
OverloadResolution
.OverloadResolutionResult =
OverloadResolution
.MethodOrPropertyInvocationOverloadResolution(group, boundArguments, argumentNames, Me, callerInfoOpt, useSiteInfo, forceExpandedForm:=forceExpandedForm)
800
results =
OverloadResolution
.MethodOrPropertyInvocationOverloadResolution(group, boundArguments, argumentNames, Me, includeEliminatedCandidates:=True, callerInfoOpt:=callerInfoOpt,
827
bestResult As
OverloadResolution
.CandidateAnalysisResult,
1192
<[In]> ByRef results As
OverloadResolution
.OverloadResolutionResult,
1222
<[In]> ByRef results As
OverloadResolution
.OverloadResolutionResult,
1233
Dim bestCandidates = ArrayBuilder(Of
OverloadResolution
.CandidateAnalysisResult).GetInstance()
1267
bestCandidates As ArrayBuilder(Of
OverloadResolution
.CandidateAnalysisResult),
1342
bestCandidates As ArrayBuilder(Of
OverloadResolution
.CandidateAnalysisResult),
1360
Dim state =
OverloadResolution
.CandidateAnalysisResultState.Count
1370
Dim singleCandidateAnalysisResult As
OverloadResolution
.CandidateAnalysisResult = Nothing
1371
Dim singleCandidate As
OverloadResolution
.Candidate = Nothing
1413
Case VisualBasic.
OverloadResolution
.CandidateAnalysisResultState.HasUseSiteError,
OverloadResolution
.CandidateAnalysisResultState.HasUnsupportedMetadata
1440
Case VisualBasic.
OverloadResolution
.CandidateAnalysisResultState.Ambiguous
1445
Case
OverloadResolution
.CandidateAnalysisResultState.BadGenericArity
1485
Case
OverloadResolution
.CandidateAnalysisResultState.ArgumentCountMismatch
1521
Case
OverloadResolution
.CandidateAnalysisResultState.ArgumentMismatch,
1522
OverloadResolution
.CandidateAnalysisResultState.GenericConstraintsViolated
1564
Case
OverloadResolution
.CandidateAnalysisResultState.TypeInferenceFailed
1591
Case
OverloadResolution
.CandidateAnalysisResultState.Applicable
1672
ByRef results As
OverloadResolution
.OverloadResolutionResult,
1673
bestCandidates As ArrayBuilder(Of
OverloadResolution
.CandidateAnalysisResult),
1676
Const Applicable =
OverloadResolution
.CandidateAnalysisResultState.Applicable
1677
Const ArgumentMismatch =
OverloadResolution
.CandidateAnalysisResultState.ArgumentMismatch
1678
Const GenericConstraintsViolated =
OverloadResolution
.CandidateAnalysisResultState.GenericConstraintsViolated
1679
Const TypeInferenceFailed =
OverloadResolution
.CandidateAnalysisResultState.TypeInferenceFailed
1680
Const ArgumentCountMismatch =
OverloadResolution
.CandidateAnalysisResultState.ArgumentCountMismatch
1681
Const BadGenericArity =
OverloadResolution
.CandidateAnalysisResultState.BadGenericArity
1682
Const Ambiguous =
OverloadResolution
.CandidateAnalysisResultState.Ambiguous
1683
Const HasUseSiteError =
OverloadResolution
.CandidateAnalysisResultState.HasUseSiteError
1684
Const HasUnsupportedMetadata =
OverloadResolution
.CandidateAnalysisResultState.HasUnsupportedMetadata
1686
Dim preference(
OverloadResolution
.CandidateAnalysisResultState.Count - 1) As Integer
1828
candidates As ArrayBuilder(Of
OverloadResolution
.CandidateAnalysisResult),
1981
ByRef candidateAnalysisResult As
OverloadResolution
.CandidateAnalysisResult,
1994
Dim candidate As
OverloadResolution
.Candidate = candidateAnalysisResult.Candidate
2003
If candidateAnalysisResult.State = VisualBasic.
OverloadResolution
.CandidateAnalysisResultState.HasUseSiteError OrElse
2004
candidateAnalysisResult.State = VisualBasic.
OverloadResolution
.CandidateAnalysisResultState.HasUnsupportedMetadata Then
2199
If candidate.IsGeneric AndAlso candidateAnalysisResult.State =
OverloadResolution
.CandidateAnalysisResultState.TypeInferenceFailed Then
2270
If candidateAnalysisResult.State =
OverloadResolution
.CandidateAnalysisResultState.GenericConstraintsViolated Then
2325
OverloadResolution
.CanPassToParamArray(paramArrayArgument, targetType, arrayConversion, Me, CompoundUseSiteInfo(Of AssemblySymbol).Discarded)) Then
2469
candidate As
OverloadResolution
.Candidate,
2627
ByRef candidate As
OverloadResolution
.CandidateAnalysisResult,
2632
Debug.Assert(candidate.State =
OverloadResolution
.CandidateAnalysisResultState.Applicable)
2751
Dim defaultArgument As
OverloadResolution
.OptionalArgument = candidate.OptionalArguments(paramIndex)
Binding\Binder_ObjectInitializer.vb (3)
397
Dim results As
OverloadResolution
.OverloadResolutionResult =
OverloadResolution
.MethodInvocationOverloadResolution(constructorsGroup,
415
results =
OverloadResolution
.MethodInvocationOverloadResolution(constructorsGroup, boundArguments, argumentNames, Me, includeEliminatedCandidates:=True, callerInfoOpt:=callerInfoOpt,
Binding\Binder_Operators.vb (28)
160
Dim preliminaryOperatorKind As BinaryOperatorKind =
OverloadResolution
.MapBinaryOperatorKind(node.Kind)
216
OverloadResolution
.MapBinaryOperatorKind(binary.Kind),
287
Dim userDefinedOperator As
OverloadResolution
.OverloadResolutionResult = Nothing
289
Dim operatorKind As BinaryOperatorKind =
OverloadResolution
.ResolveBinaryOperator(preliminaryOperatorKind, left, right, Me,
301
Dim bestCandidate As
OverloadResolution
.Candidate = If(userDefinedOperator.BestResult.HasValue,
306
(
OverloadResolution
.IsValidInLiftedSignature(bestCandidate.Parameters(0).Type) AndAlso
307
OverloadResolution
.IsValidInLiftedSignature(bestCandidate.Parameters(1).Type) AndAlso
308
OverloadResolution
.IsValidInLiftedSignature(bestCandidate.ReturnType)) Then
524
value =
OverloadResolution
.TryFoldConstantBinaryOperator(operatorKind,
590
<[In]> ByRef userDefinedOperator As
OverloadResolution
.OverloadResolutionResult,
600
Dim bestCandidate As
OverloadResolution
.CandidateAnalysisResult = userDefinedOperator.BestResult.Value
656
<[In]> ByRef bitwiseOperator As
OverloadResolution
.OverloadResolutionResult,
679
Dim bitwiseAnalysis As
OverloadResolution
.CandidateAnalysisResult = bitwiseOperator.BestResult.Value
680
Dim bitwiseCandidate As
OverloadResolution
.Candidate = bitwiseAnalysis.Candidate
704
Dim leftCheckOperator As
OverloadResolution
.OverloadResolutionResult
709
leftCheckOperator =
OverloadResolution
.ResolveIsFalseOperator(leftPlaceholder, Me, useSiteInfo)
711
leftCheckOperator =
OverloadResolution
.ResolveIsTrueOperator(leftPlaceholder, Me, useSiteInfo)
732
Dim checkCandidate As
OverloadResolution
.Candidate = leftCheckOperator.BestResult.Value.Candidate
979
If
OverloadResolution
.UseUserDefinedBinaryOperators(operatorKind, leftType, rightType) AndAlso
1137
Dim preliminaryOperatorKind As UnaryOperatorKind =
OverloadResolution
.MapUnaryOperatorKind(node.Kind)
1155
Dim userDefinedOperator As
OverloadResolution
.OverloadResolutionResult = Nothing
1157
Dim operatorKind As UnaryOperatorKind =
OverloadResolution
.ResolveUnaryOperator(preliminaryOperatorKind, operand, Me, intrinsicOperatorType, userDefinedOperator, useSiteInfo)
1165
Dim bestCandidate As
OverloadResolution
.Candidate = If(userDefinedOperator.BestResult.HasValue,
1170
(
OverloadResolution
.IsValidInLiftedSignature(bestCandidate.Parameters(0).Type) AndAlso
1171
OverloadResolution
.IsValidInLiftedSignature(bestCandidate.ReturnType)) Then
1221
constantValue =
OverloadResolution
.TryFoldConstantUnaryOperator(operatorKind, operand, resultType, integerOverflow)
1241
<[In]> ByRef userDefinedOperator As
OverloadResolution
.OverloadResolutionResult,
1251
Dim bestCandidate As
OverloadResolution
.CandidateAnalysisResult = userDefinedOperator.BestResult.Value
Binding\Binder_Query.vb (8)
1987
Dim results As
OverloadResolution
.OverloadResolutionResult =
OverloadResolution
.QueryOperatorInvocationOverloadResolution(methodGroup,
2061
Dim results As
OverloadResolution
.OverloadResolutionResult =
OverloadResolution
.QueryOperatorInvocationOverloadResolution(methodGroup,
3473
Dim operatorKind As BinaryOperatorKind =
OverloadResolution
.ResolveBinaryOperator(BinaryOperatorKind.Equals,
4643
Dim results As
OverloadResolution
.OverloadResolutionResult =
OverloadResolution
.QueryOperatorInvocationOverloadResolution(methodGroup,
4657
results =
OverloadResolution
.QueryOperatorInvocationOverloadResolution(methodGroup, arguments, Me, includeEliminatedCandidates:=True,
Binding\Binder_Statements.vb (4)
3282
Dim userDefinedOperator As
OverloadResolution
.OverloadResolutionResult =
OverloadResolution
.ResolveUserDefinedBinaryOperator(left, right, opCode, Me, includeEliminatedCandidates:=False,
3291
ReportDiagnostic(diagnostics, syntax, ERRID.ERR_ForLoopOperatorRequired2, left.Type, SyntaxFacts.GetText(
OverloadResolution
.GetOperatorTokenKind(opCode)))
3295
Dim bestCandidate As
OverloadResolution
.Candidate = userDefinedOperator.BestResult.Value.Candidate
Binding\DocumentationCommentCrefBinder.vb (31)
903
Dim opInfo As New
OverloadResolution
.OperatorInfo(UnaryOperatorKind.IsTrue)
909
Dim opInfo As New
OverloadResolution
.OperatorInfo(UnaryOperatorKind.IsFalse)
915
Dim opInfo As New
OverloadResolution
.OperatorInfo(UnaryOperatorKind.Not)
924
Dim opInfo As New
OverloadResolution
.OperatorInfo(UnaryOperatorKind.Plus)
927
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Add)
933
Dim opInfo As New
OverloadResolution
.OperatorInfo(UnaryOperatorKind.Minus)
936
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Subtract)
942
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Multiply)
948
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Divide)
954
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.IntegerDivide)
960
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Modulo)
966
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Power)
972
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Equals)
978
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.NotEquals)
984
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.LessThan)
990
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.GreaterThan)
996
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.LessThanOrEqual)
1002
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.GreaterThanOrEqual)
1008
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Like)
1014
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Concatenate)
1020
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.And)
1029
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Or)
1038
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.Xor)
1044
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.LeftShift)
1053
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.RightShift)
1062
Dim opInfo As New
OverloadResolution
.OperatorInfo(BinaryOperatorKind.RightShift)
1064
WellKnownMemberNames.ImplicitConversionName, New
OverloadResolution
.OperatorInfo(UnaryOperatorKind.Implicit),
1066
WellKnownMemberNames.ExplicitConversionName, New
OverloadResolution
.OperatorInfo(UnaryOperatorKind.Explicit))
1078
info1 As
OverloadResolution
.OperatorInfo,
1081
Optional info2 As
OverloadResolution
.OperatorInfo = Nothing)
1084
OverloadResolution
.CollectUserDefinedOperators(type, Nothing, kind, name1, info1, name2, info2, methods, useSiteInfo)
BoundTree\BoundBinaryOperator.vb (1)
51
Dim opName As String =
OverloadResolution
.TryGetOperatorName(OperatorKind, isChecked)
BoundTree\BoundCall.vb (3)
98
Debug.Assert(
OverloadResolution
.CanLiftType(Method.ReturnType) AndAlso
120
ElseIf
OverloadResolution
.CanLiftType(signatureType) AndAlso
129
Debug.Assert(
OverloadResolution
.CanLiftType(signatureType) AndAlso
BoundTree\BoundUnaryOperator.vb (1)
40
Dim opName As String =
OverloadResolution
.TryGetOperatorName(OperatorKind, isChecked)
BoundTree\BoundUserDefinedBinaryOperator.vb (2)
48
Debug.Assert(
OverloadResolution
.CanLiftType(parameter.Type))
55
(
OverloadResolution
.CanLiftType(underlyingCall.Method.ReturnType) AndAlso
BoundTree\BoundUserDefinedUnaryOperator.vb (2)
40
Debug.Assert(
OverloadResolution
.CanLiftType(parameter.Type) AndAlso
46
(
OverloadResolution
.CanLiftType(underlyingCall.Method.ReturnType) AndAlso
Compilation\MethodResolutionResult.vb (17)
20
Applicable =
OverloadResolution
.CandidateAnalysisResultState.Applicable
22
HasUseSiteError =
OverloadResolution
.CandidateAnalysisResultState.HasUseSiteError
23
Ambiguous =
OverloadResolution
.CandidateAnalysisResultState.Ambiguous
24
BadGenericArity =
OverloadResolution
.CandidateAnalysisResultState.BadGenericArity
25
ArgumentCountMismatch =
OverloadResolution
.CandidateAnalysisResultState.ArgumentCountMismatch
26
TypeInferenceFailed =
OverloadResolution
.CandidateAnalysisResultState.TypeInferenceFailed
27
ArgumentMismatch =
OverloadResolution
.CandidateAnalysisResultState.ArgumentMismatch
28
GenericConstraintsViolated =
OverloadResolution
.CandidateAnalysisResultState.GenericConstraintsViolated
29
RequiresNarrowing =
OverloadResolution
.CandidateAnalysisResultState.RequiresNarrowing
30
RequiresNarrowingNotFromObject =
OverloadResolution
.CandidateAnalysisResultState.RequiresNarrowingNotFromObject
31
ExtensionMethodVsInstanceMethod =
OverloadResolution
.CandidateAnalysisResultState.ExtensionMethodVsInstanceMethod
32
Shadowed =
OverloadResolution
.CandidateAnalysisResultState.Shadowed
33
LessApplicable =
OverloadResolution
.CandidateAnalysisResultState.LessApplicable
42
Private ReadOnly _candidate As
OverloadResolution
.CandidateAnalysisResult
45
Friend Sub New(candidate As
OverloadResolution
.CandidateAnalysisResult, isValid As Boolean)
46
Debug.Assert(Not isValid OrElse candidate.State =
OverloadResolution
.CandidateAnalysisResultState.Applicable)
66
If _candidate.State =
OverloadResolution
.CandidateAnalysisResultState.HasUnsupportedMetadata Then
Compilation\VisualBasicCompilation.vb (6)
2965
Dim opInfo =
OverloadResolution
.GetOperatorInfo(nameToCheck)
2980
opInfo As
OverloadResolution
.OperatorInfo)
2998
Dim resolved =
OverloadResolution
.ResolveNotLiftedIntrinsicBinaryOperator(opInfo.BinaryOperatorKind, leftType.SpecialType, rightType.SpecialType)
3037
Dim opInfo =
OverloadResolution
.GetOperatorInfo(nameToCheck)
3051
opInfo As
OverloadResolution
.OperatorInfo)
3068
Dim resolved =
OverloadResolution
.ResolveNotLiftedIntrinsicUnaryOperator(opInfo.UnaryOperatorKind, operandType.SpecialType)
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (1)
406
Dim constant =
OverloadResolution
.TryFoldConstantBinaryOperator(binaryOpKind, left, right, resultType, intOverflow, divideByZero, lengthOutOfLimit)
Semantics\Conversions.vb (5)
1436
<Out> ByRef isTrueOperator As
OverloadResolution
.OverloadResolutionResult,
1498
Dim results As
OverloadResolution
.OverloadResolutionResult = Nothing
1501
results =
OverloadResolution
.ResolveIsTrueOperator(operand, binder, useSiteInfo)
2098
Return
OverloadResolution
.ResolveUserDefinedConversion(source, destination, useSiteInfo)
2172
OverloadResolution
.IsWidening(conv.Value) AndAlso
SymbolDisplay\SymbolDisplayVisitor.Members.vb (3)
398
Dim opInfo As
OverloadResolution
.OperatorInfo =
OverloadResolution
.GetOperatorInfo(nameToCheck)
402
Return
OverloadResolution
.GetOperatorTokenKind(opInfo)
Symbols\Metadata\PE\PEMethodSymbol.vb (6)
406
Dim opInfo As
OverloadResolution
.OperatorInfo =
OverloadResolution
.GetOperatorInfo(name)
412
If
OverloadResolution
.ValidateOverloadedOperator(Me, opInfo) Then
452
Private Function ComputeMethodKindForPotentialOperatorOrConversion(opInfo As
OverloadResolution
.OperatorInfo) As MethodKind
523
Private Function IsPotentialOperatorOrConversion(opInfo As
OverloadResolution
.OperatorInfo) As Boolean
531
opInfo As
OverloadResolution
.OperatorInfo,
Symbols\ReducedExtensionMethodSymbol.vb (1)
177
If Not
OverloadResolution
.DoesReceiverMatchInstance(instanceType, receiverType, reducedUseSiteInfo) OrElse
Symbols\Source\OverrideHidingHelper.vb (1)
461
SyntaxFacts.GetText(
OverloadResolution
.GetOperatorTokenKind(associatedSymbol.Name)),
Symbols\Source\SourceMemberContainerTypeSymbol.vb (4)
3627
Dim opInfo As
OverloadResolution
.OperatorInfo =
OverloadResolution
.GetOperatorInfo(method.Name)
3629
If Not
OverloadResolution
.ValidateOverloadedOperator(method, opInfo, diagnostics, ContainingAssembly) Then
3718
SyntaxFacts.GetText(
OverloadResolution
.GetOperatorTokenKind(nameOfThePair)),
Symbols\Source\SourceMethodSymbol.vb (3)
345
Debug.Assert(
OverloadResolution
.GetOperatorInfo(name).ParamCount = 1)
350
Debug.Assert(
OverloadResolution
.GetOperatorInfo(name).ParamCount = 2)
357
Debug.Assert(
OverloadResolution
.GetOperatorInfo(name).ParamCount = syntax.ParameterList.Parameters.Count)
Syntax\SyntaxFacts.vb (2)
1135
Dim opInfo =
OverloadResolution
.GetOperatorInfo(operatorMetadataName)
1137
Return If(opInfo.ParamCount = 0, SyntaxKind.None,
OverloadResolution
.GetOperatorTokenKind(opInfo))