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