30 references to ERR_WrongFuncPtrCallingConvention
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
599
ErrorCode.
ERR_WrongFuncPtrCallingConvention
,
Errors\ErrorFacts.cs (1)
2058
or ErrorCode.
ERR_WrongFuncPtrCallingConvention
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (26)
CodeGen\CodeGenFunctionPointersTests.cs (26)
3279
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M1").WithArguments("C.M1()", callingConvention).WithLocation(7, 33 + callingConventionKeyword.Length));
4085
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "Program.M").WithArguments("ConsoleApplication.Program.M()", "Default").WithLocation(7, 32)
8582
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M1", isSuppressed: false).WithArguments("C.M1()", "Default").WithLocation(11, 31)
8615
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "E.M1", isSuppressed: false).WithArguments("D.M1()", "Default").WithLocation(9, 31)
8648
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M1", isSuppressed: false).WithArguments("D.M1()", "Default").WithLocation(9, 31)
8687
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1", isSuppressed: false).WithArguments("C.M1()", "Default").WithLocation(7, 31),
10204
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(27, 51)
10213
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(6, 51)
10258
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(27, 51)
10267
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(6, 51)
10309
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(28, 50)
10320
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(7, 50)
10371
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "Unmanaged").WithLocation(26, 43),
10374
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(27, 50)
10385
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "Unmanaged").WithLocation(6, 43),
10388
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(7, 50)
10499
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "Standard").WithLocation(9, 52),
10544
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "F", isSuppressed: false).WithArguments("A.F()", "Unmanaged").WithLocation(9, 43)
10588
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Default").WithLocation(10, 39)
10596
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Unmanaged").WithLocation(11, 51)
10605
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "CDecl").WithLocation(12, 54)
10614
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "ThisCall").WithLocation(13, 60)
10623
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Standard").WithLocation(14, 58)
10632
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "FastCall").WithLocation(15, 60)
10641
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Unmanaged").WithLocation(16, 72)
10784
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M1", isSuppressed: false).WithArguments("C.M1(int)", "Default").WithLocation(11, 48),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
29193
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("E.extension(C).M()", "Default").WithLocation(5, 32),
29196
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "E.M").WithArguments("E.M()", "Default").WithLocation(6, 33));