38 references to OverloadResolutionFailure
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_Attributes.cs (1)
230LookupResultKind.OverloadResolutionFailure);
Binder\Binder_Expressions.cs (5)
2754if (conversion.ResultKind == LookupResultKind.OverloadResolutionFailure) 5046resultKind: LookupResultKind.OverloadResolutionFailure, 5456return new BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, StaticCast<Symbol>.From(type.InstanceConstructors), childNodes, type); 6835resultKind = LookupResultKind.OverloadResolutionFailure; 7020return new BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol>.Empty, children, interfaceType);
Binder\Binder_Invocation.cs (1)
2383LookupResultKind.OverloadResolutionFailure,
Binder\Binder_Operators.cs (5)
869case LookupResultKind.OverloadResolutionFailure when operatorToken.Kind() is SyntaxKind.PlusToken && isReadOnlySpanOfByte(left.Type) && isReadOnlySpanOfByte(right.Type): 1323resultKind = LookupResultKind.OverloadResolutionFailure; 1358resultKind = LookupResultKind.OverloadResolutionFailure; 1458resultKind = LookupResultKind.OverloadResolutionFailure; 1467resultKind = LookupResultKind.OverloadResolutionFailure;
Binder\Binder_Query.cs (1)
302state.selectOrGroup, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty,
Binder\Binder_Statements.cs (1)
2266else if (conversion.ResultKind == LookupResultKind.OverloadResolutionFailure)
Binder\LookupResultKind.cs (1)
89case LookupResultKind.OverloadResolutionFailure: return CandidateReason.OverloadResolutionFailure;
Binder\Semantics\Conversions\Conversion.cs (2)
1057return LookupResultKind.OverloadResolutionFailure; 1068return LookupResultKind.OverloadResolutionFailure;
BoundTree\BoundExpression.cs (1)
349return !this.OriginalIndexersOpt.IsDefault ? LookupResultKind.OverloadResolutionFailure : base.ResultKind;
BoundTree\Constructors.cs (1)
135resultKind = resultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure);
Compilation\CSharpSemanticModel.cs (13)
388resultKind = LookupResultKind.OverloadResolutionFailure; 1913if ((symbols.Count != 1 || resultKind == LookupResultKind.OverloadResolutionFailure) && highestSymbols.Count > 0) 1971resultKind = LookupResultKind.OverloadResolutionFailure; 3672resultKind = resultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4066resultKind = resultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4276resultKind = call.ResultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4350resultKind = resultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4365resultKind = resultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4375if (!isDynamic && resultKind > LookupResultKind.OverloadResolutionFailure) 4377resultKind = LookupResultKind.OverloadResolutionFailure; 4425resultKind = indexer.ResultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4460if (resultKind > LookupResultKind.OverloadResolutionFailure) 4462resultKind = LookupResultKind.OverloadResolutionFailure;
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (2)
407callGetTypeFromCLSID = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, ErrorTypeSymbol.UnknownResultType); 419rewrittenObjectCreation = new BoundBadExpression(node.Syntax, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty, ImmutableArray<BoundExpression>.Empty, node.Type);
Operations\CSharpOperationFactory.cs (3)
631if (!boundIndexerAccess.OriginalIndexersOpt.IsDefault || boundIndexerAccess.ResultKind == LookupResultKind.OverloadResolutionFailure) 711if (boundObjectCreationExpression.ResultKind == LookupResultKind.OverloadResolutionFailure || constructor.OriginalDefinition is ErrorMethodSymbol) 887if (accessor == null || boundObjectInitializerMember.ResultKind == LookupResultKind.OverloadResolutionFailure || accessor.OriginalDefinition is ErrorMethodSymbol)
Operations\CSharpOperationFactory_Methods.cs (1)
122resultKind == LookupResultKind.OverloadResolutionFailure || targetMethod?.OriginalDefinition is ErrorMethodSymbol;