47 references to ERR_ExtensionResolutionFailed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
8839
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)
11530
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(1, 5));
14726
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.P").WithArguments("System.Collections.Generic.IEnumerable<object>", "P").WithLocation(5, 5)
14815
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "int.P").WithArguments("int", "P").WithLocation(4, 5),
14818
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "42.P2").WithArguments("int", "P2").WithLocation(5, 5));
15410
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().P").WithArguments("object", "P").WithLocation(1, 22));
15588
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().P").WithArguments("object", "P").WithLocation(1, 22));
15745
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 16),
15748
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 22));
15781
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 23),
15784
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 29));
15843
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 17));
15875
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 24),
15878
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(2, 19));
17163
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "o.Member").WithArguments("object", "Member").WithLocation(2, 5));
17234
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 10),
17237
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 16));
17267
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.f").WithArguments("object", "f").WithLocation(1, 38)
17297
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().Member").WithArguments("object", "Member").WithLocation(1, 43));
17357
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 29)
17389
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "D.f").WithArguments("D", "f").WithLocation(1, 38)
17940
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.StaticProperty").WithArguments("object", "StaticProperty").WithLocation(2, 13),
17943
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.StaticProperty").WithArguments("object", "StaticProperty").WithLocation(2, 37));
23022
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "1.Property").WithArguments("int", "Property").WithLocation(1, 1),
23025
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "2.Property").WithArguments("int", "Property").WithLocation(2, 5));
23363
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "(1, 1).Property").WithArguments("(int, int)", "Property").WithLocation(1, 1),
23366
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "(2, 2).Property").WithArguments("(int, int)", "Property").WithLocation(2, 5));
23407
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
23444
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
23581
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "C.M").WithArguments("C", "M").WithLocation(1, 22));
26097
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "Property").WithArguments("string[]", "Property").WithLocation(2, 12),
27300
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(1, 9));
27582
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 22));
27843
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "C.Property").WithArguments("C", "Property").WithLocation(1, 29));
33465
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new A.C().P").WithArguments("A.C", "P").WithLocation(1, 5));
33855
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "Color.P").WithArguments("Color", "P").WithLocation(5, 13));
34501
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "s.M").WithArguments("string", "M").WithLocation(2, 1));
34532
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "string.M").WithArguments("string", "M").WithLocation(1, 1));
34566
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.M").WithArguments("I<string>", "M").WithLocation(2, 1));
34604
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.M").WithArguments("I<string>", "M").WithLocation(2, 1));
35073
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "new object().M").WithArguments("object", "M").WithLocation(1, 9));
35230
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "i.P").WithArguments("int", "P").WithLocation(2, 5));
35675
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.Property").WithArguments("object", "Property").WithLocation(2, 5));
45249
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.P").WithArguments("object", "P").WithLocation(13, 73));
Semantics\ExtensionTests2.cs (2)
2578
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(1, 9),
2581
Diagnostic(ErrorCode.
ERR_ExtensionResolutionFailed
, "object.M").WithArguments("object", "M").WithLocation(4, 19));