170 references to OverloadResolutionFailure
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
892if (_failOnOverloadResolutionFailuresInOriginalCode && originalSymbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure)
Microsoft.CodeAnalysis.CSharp (1)
Binder\LookupResultKind.cs (1)
89case LookupResultKind.OverloadResolutionFailure: return CandidateReason.OverloadResolutionFailure;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
130if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && !symbolInfo.CandidateSymbols.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (13)
CodeGen\CodeGenFunctionPointersTests.cs (13)
3120expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3347expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3368expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3417expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3464expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3574expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3581expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3626expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3633expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3677expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3684expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 3716expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 4122expectedCandidateReason: CandidateReason.OverloadResolutionFailure,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
Semantics\PrimaryConstructorTests.cs (12)
2124Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2129Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2133Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2142Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2147Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2152Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2225Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2230Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2234Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2364Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2369Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 2373Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\RecordTests.cs (12)
22281Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22286Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22290Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22299Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22304Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22309Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22382Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22387Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22391Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22521Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22526Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 22530Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\GenerateConstructor\CSharpGenerateConstructorService.cs (1)
130if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && !symbolInfo.CandidateSymbols.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
Semantics\BetterCandidates.cs (8)
1091Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1099Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1107Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1115Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1123Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1168Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1216Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1269Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\BindingTests.cs (4)
3049Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason); 3129Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason); 3203Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason); 3288Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason);
Semantics\ColorColorTests.cs (3)
652Assert.Equal(CandidateReason.OverloadResolutionFailure, parentInfo.CandidateReason); 1170Assert.Equal(CandidateReason.OverloadResolutionFailure, parentInfo.CandidateReason); 1215Assert.Equal(CandidateReason.OverloadResolutionFailure, parentInfo.CandidateReason);
Semantics\ExpressionBodiedMemberTests.cs (1)
196Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason);
Semantics\IteratorTests.cs (1)
662Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\LambdaTests.cs (2)
1184Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1212Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\LocalFunctionTests.cs (2)
1800Assert.Equal(CandidateReason.OverloadResolutionFailure, clsCompliantSymbolInfo.CandidateReason); 1875Assert.Equal(CandidateReason.OverloadResolutionFailure, clsCompliantSymbolInfo.CandidateReason);
Semantics\LookupTests.cs (2)
1504Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 1508Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\NameOfTests.cs (2)
1075verifySymbolInfo(CandidateReason.OverloadResolutionFailure, model.GetSpeculativeSymbolInfo(argument2.Position, argument2, SpeculativeBindingOption.BindAsExpression)); 1239verifySymbolInfo(CandidateReason.OverloadResolutionFailure, model.GetSpeculativeSymbolInfo(argument2.Position, argument2, SpeculativeBindingOption.BindAsExpression));
Semantics\NonTrailingNamedArgumentsTests.cs (3)
429Assert.Equal(CandidateReason.OverloadResolutionFailure, symbol.CandidateReason); 540Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 714Assert.Equal(CandidateReason.OverloadResolutionFailure, model.GetSymbolInfo(firstInvocation).CandidateReason);
Semantics\ObjectAndCollectionInitializerTests.cs (1)
3528Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\OperatorTests.cs (1)
8100Assert.Equal(CandidateReason.OverloadResolutionFailure, info1.CandidateReason);
Semantics\OverloadResolutionTests.cs (1)
9423Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Semantics\SemanticErrorTests.cs (1)
3338Assert.Equal(CandidateReason.OverloadResolutionFailure, boundCall.CandidateReason);
Semantics\UnsafeTests.cs (1)
7409Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (51)
Compilation\GetSemanticInfoTests.cs (13)
1461Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 1466Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 1815Assert.Equal(CandidateReason.OverloadResolutionFailure, bindInfo.CandidateReason); 2844Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 3791Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3824Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3851Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3958Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 4599Assert.Equal(CandidateReason.OverloadResolutionFailure, classInfo.CandidateReason); 4601Assert.Equal(CandidateReason.OverloadResolutionFailure, structInfo.CandidateReason); 4646Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 4916Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 5480Assert.Equal(CandidateReason.OverloadResolutionFailure, invocationInfo.CandidateReason);
Compilation\SemanticModelAPITests.cs (2)
103Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 2117Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
4182Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason); 4269Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason);
Compilation\SemanticModelGetSemanticInfoTests.cs (25)
52Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 801Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2696Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2737Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2787Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 2833Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 3022Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 4075Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 4286Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 6402Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 6681Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 7591Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8041Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8094Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 8690Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 9068Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 9461Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11150Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11228Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 11541Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13135Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13169Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 13234Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 14596Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason); 15119Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason);
DocumentationComments\CrefTests.cs (5)
3228Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3252Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3276Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3300Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason); 3324Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason);
Symbols\ConversionTests.cs (1)
2073Assert.Equal(CandidateReason.OverloadResolutionFailure, castInfo.CandidateReason);
Symbols\ExtensionMethodTests.cs (1)
3017Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason);
Symbols\FunctionPointerTypeSymbolTests.cs (2)
1838expectedCandidateReason: CandidateReason.OverloadResolutionFailure, 1857expectedCandidateReason: CandidateReason.OverloadResolutionFailure,
Microsoft.CodeAnalysis.Features (2)
AddImport\SymbolReferenceFinder.cs (1)
591if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && !checkForExtensionMethods)
GenerateType\AbstractGenerateTypeService.State.cs (1)
147CandidateReason.OverloadResolutionFailure)
Microsoft.CodeAnalysis.VisualBasic (1)
Binding\LookupResult.vb (1)
48Return CandidateReason.OverloadResolutionFailure
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (1)
144If symbolInfo.CandidateReason = CandidateReason.OverloadResolutionFailure AndAlso Not symbolInfo.CandidateSymbols.IsEmpty Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateConstructor\VisualBasicGenerateConstructorService.vb (1)
144If symbolInfo.CandidateReason = CandidateReason.OverloadResolutionFailure AndAlso Not symbolInfo.CandidateSymbols.IsEmpty Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (37)
Binding\BindingCollectionInitializerTests.vb (1)
1848Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason)
Binding\LookupTests.vb (1)
2355Assert.Equal(CandidateReason.OverloadResolutionFailure, info3.CandidateReason)
Compilation\SemanticModelAPITests.vb (2)
425Assert.Equal(symbolInfo.CandidateReason, CandidateReason.OverloadResolutionFailure) 1242Assert.Equal(symbolInfo.CandidateReason, CandidateReason.OverloadResolutionFailure)
Semantics\BinaryOperators.vb (1)
1046Assert.Equal(CandidateReason.OverloadResolutionFailure, info1.CandidateReason)
Semantics\GetExtendedSemanticInfoTests.vb (22)
1625Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 1669Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 1801Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 1893Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 1930Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 2638Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 2785Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 3799Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 3837Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 4020Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4581Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4622Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4657Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4715Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4796Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 4839Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 5861Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 7208Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason) 8079Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 8123Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason) 9073Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 9324Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason)
Semantics\GetSemanticInfoTests.vb (1)
6054Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason)
Semantics\LambdaSemanticInfoTests.vb (2)
756Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 782Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason)
Semantics\MethodCalls.vb (1)
2931Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticInfo.CandidateReason)
Semantics\NonTrailingNamedArgumentsTests.vb (1)
746Assert.Equal(CandidateReason.OverloadResolutionFailure, model.GetSymbolInfo(firstInvocation).CandidateReason)
Semantics\QueryExpressions_SemanticModel.vb (4)
1190Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 1682Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo.CandidateReason) 3400Assert.Equal(CandidateReason.OverloadResolutionFailure, symbolInfo1.CandidateReason) 3822Assert.Equal(CandidateReason.OverloadResolutionFailure, info.CandidateReason)
Semantics\SelectCaseTests.vb (1)
363Assert.Equal(CandidateReason.OverloadResolutionFailure, semanticSummary.CandidateReason)
Microsoft.CodeAnalysis.Workspaces (3)
Rename\RenameLocation.cs (1)
128case CandidateReason.OverloadResolutionFailure:
Rename\RenameUtilities.cs (1)
177if (symbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure && symbolInfo.CandidateSymbols.Length == 1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
892if (_failOnOverloadResolutionFailuresInOriginalCode && originalSymbolInfo.CandidateReason == CandidateReason.OverloadResolutionFailure)