47 references to ERR_ExtensionResolutionFailed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8837
var errorInfo = new CSDiagnosticInfo(ErrorCode.
ERR_ExtensionResolutionFailed
, receiverType, memberName);
Errors\ErrorFacts.cs (1)
2497
or ErrorCode.
ERR_ExtensionResolutionFailed
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (45)
Semantics\ExtensionTests.cs (43)
12364
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(1, 5));
15560
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.P").WithArguments("System.Collections.Generic.IEnumerable<object>", "P").WithLocation(5, 5)
15649
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "int.P").WithArguments("int", "P").WithLocation(4, 5),
15652
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "42.P2").WithArguments("int", "P2").WithLocation(5, 5));
16244
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().P").WithArguments("object", "P").WithLocation(1, 22));
16422
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().P").WithArguments("object", "P").WithLocation(1, 22));
16579
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 16),
16582
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 22));
16615
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 23),
16618
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 29));
16677
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 17));
16709
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 24),
16712
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 19));
18035
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "o.Member").WithArguments("object", "Member").WithLocation(2, 5));
18106
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 10),
18109
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 16));
18139
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.f").WithArguments("object", "f").WithLocation(1, 38)
18169
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().Member").WithArguments("object", "Member").WithLocation(1, 43));
18229
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 29)
18261
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 38)
18812
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.StaticProperty").WithArguments("object", "StaticProperty").WithLocation(2, 13),
18815
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.StaticProperty").WithArguments("object", "StaticProperty").WithLocation(2, 37));
24563
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "1.Property").WithArguments("int", "Property").WithLocation(1, 1),
24566
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "2.Property").WithArguments("int", "Property").WithLocation(2, 5));
24904
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "(1, 1).Property").WithArguments("(int, int)", "Property").WithLocation(1, 1),
24907
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "(2, 2).Property").WithArguments("(int, int)", "Property").WithLocation(2, 5));
24948
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
24985
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
25122
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "C.M").WithArguments("C", "M").WithLocation(1, 22));
27622
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "Property").WithArguments("string[]", "Property").WithLocation(2, 12),
28825
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(1, 9));
29107
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
29368
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "C.Property").WithArguments("C", "Property").WithLocation(1, 29));
35244
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new A.C().P").WithArguments("A.C", "P").WithLocation(1, 5));
35634
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "Color.P").WithArguments("Color", "P").WithLocation(5, 13));
36280
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "s.M").WithArguments("string", "M").WithLocation(2, 1));
36311
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "string.M").WithArguments("string", "M").WithLocation(1, 1));
36345
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.M").WithArguments("I<string>", "M").WithLocation(2, 1));
36383
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.M").WithArguments("I<string>", "M").WithLocation(2, 1));
36852
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().M").WithArguments("object", "M").WithLocation(1, 9));
37047
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.P").WithArguments("int", "P").WithLocation(2, 5));
37492
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.Property").WithArguments("object", "Property").WithLocation(2, 5));
47753
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(13, 73));
Semantics\ExtensionTests2.cs (2)
2579
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 9),
2582
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(4, 19));