15 references to ERR_InterceptorMustHaveMatchingThisParameter
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
624
or ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
254
this._diagnostics.Add(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, attributeLocation, methodThisParameter, method);
266
this._diagnostics.Add(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, attributeLocation, method.Parameters[0], method);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\InterceptorsTests.cs (11)
1082
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "InterceptsLocation").WithArguments("D this", "D.M()").WithLocation(6, 6));
1117
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "InterceptsLocation").WithArguments("C this", "C.M()").WithLocation(6, 6)
1630
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "InterceptsLocation").WithArguments("C c", "D.InterceptableMethod(C)").WithLocation(6, 6));
3737
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "InterceptsLocation").WithArguments("C this", "C.InterceptableMethod(string)").WithLocation(6, 6)
3778
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "InterceptsLocation").WithArguments("ref S this", "S.InterceptableMethod(string)").WithLocation(6, 6)
4122
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "InterceptsLocation").WithArguments("ref Program this", "Program.InterceptableMethod()").WithLocation(6, 6));
4198
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "InterceptsLocation").WithArguments("in Program this", "Program.InterceptableMethod()").WithLocation(6, 6));
8580
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "System.Runtime.CompilerServices.InterceptsLocation").WithArguments("C<object> o", "E.extension(C<object>).M()").WithLocation(5, 6));
8610
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "System.Runtime.CompilerServices.InterceptsLocation").WithArguments("int i", "E.extension(int).M()").WithLocation(3, 6));
8639
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "System.Runtime.CompilerServices.InterceptsLocation").WithArguments("int i", "E.extension(int).M()").WithLocation(3, 6));
8801
Diagnostic(ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
, "System.Runtime.CompilerServices.InterceptsLocation").WithArguments("object o", "Extensions.M(object)").WithLocation(5, 10));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2978
case ErrorCode.
ERR_InterceptorMustHaveMatchingThisParameter
: