38 references to OverloadResolutionFailure
Microsoft.CodeAnalysis.CSharp (38)
Binder\Binder_Attributes.cs (1)
230LookupResultKind.OverloadResolutionFailure);
Binder\Binder_Expressions.cs (5)
2751if (conversion.ResultKind == LookupResultKind.OverloadResolutionFailure) 5043resultKind: LookupResultKind.OverloadResolutionFailure, 5453return new BoundBadExpression(node, LookupResultKind.OverloadResolutionFailure, StaticCast<Symbol>.From(type.InstanceConstructors), childNodes, type); 6832resultKind = LookupResultKind.OverloadResolutionFailure; 7017return 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): 1318resultKind = LookupResultKind.OverloadResolutionFailure; 1353resultKind = LookupResultKind.OverloadResolutionFailure; 1453resultKind = LookupResultKind.OverloadResolutionFailure; 1462resultKind = LookupResultKind.OverloadResolutionFailure;
Binder\Binder_Query.cs (1)
302state.selectOrGroup, LookupResultKind.OverloadResolutionFailure, ImmutableArray<Symbol?>.Empty,
Binder\Binder_Statements.cs (1)
2263else 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); 4343resultKind = resultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4358resultKind = resultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4368if (!isDynamic && resultKind > LookupResultKind.OverloadResolutionFailure) 4370resultKind = LookupResultKind.OverloadResolutionFailure; 4418resultKind = indexer.ResultKind.WorseResultKind(LookupResultKind.OverloadResolutionFailure); 4453if (resultKind > LookupResultKind.OverloadResolutionFailure) 4455resultKind = 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;