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