17 references to WRN_InterceptorSignatureMismatch
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
546
case ErrorCode.
WRN_InterceptorSignatureMismatch
:
627
or ErrorCode.
WRN_InterceptorSignatureMismatch
Generated\ErrorFacts.Generated.cs (1)
320
case ErrorCode.
WRN_InterceptorSignatureMismatch
:
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
240
this._diagnostics.Add(ErrorCode.
WRN_InterceptorSignatureMismatch
, attributeLocation, method, interceptor);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\InterceptorsTests.cs (11)
3916
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method1(object)", "D.Interceptor1(C, dynamic)").WithLocation(5, 6),
3919
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method2()", "D.Interceptor2(C)").WithLocation(8, 6)
3982
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method2((string x, string y))", "D.Interceptor1(C, (string a, string b))").WithLocation(7, 6),
3985
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method3((string, string))", "D.Interceptor1(C, (string a, string b))").WithLocation(8, 6),
3988
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method1((string a, string b))", "D.Interceptor2(C, (string x, string y))").WithLocation(11, 6),
3991
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method3((string, string))", "D.Interceptor2(C, (string x, string y))").WithLocation(13, 6),
3994
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method1((string a, string b))", "D.Interceptor3(C, (string, string))").WithLocation(16, 6),
3997
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method2((string x, string y))", "D.Interceptor3(C, (string, string))").WithLocation(17, 6)
4049
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method1(nint)", "D.Interceptor1(C, System.IntPtr)").WithLocation(6, 6),
4052
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "InterceptsLocation").WithArguments("C.Method2(System.IntPtr)", "D.Interceptor2(C, nint)").WithLocation(10, 6));
9326
Diagnostic(ErrorCode.
WRN_InterceptorSignatureMismatch
, "System.Runtime.CompilerServices.InterceptsLocation").WithArguments("E.M(object)", "Interceptors.Method1(object)").WithLocation(8, 10));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
307
case ErrorCode.
WRN_InterceptorSignatureMismatch
:
2981
case ErrorCode.
WRN_InterceptorSignatureMismatch
: