30 references to ERR_WrongFuncPtrCallingConvention
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
599
ErrorCode.
ERR_WrongFuncPtrCallingConvention
,
Errors\ErrorFacts.cs (1)
2059
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)
8584
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M1", isSuppressed: false).WithArguments("C.M1()", "Default").WithLocation(11, 31)
8617
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "E.M1", isSuppressed: false).WithArguments("D.M1()", "Default").WithLocation(9, 31)
8650
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M1", isSuppressed: false).WithArguments("D.M1()", "Default").WithLocation(9, 31)
8689
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1", isSuppressed: false).WithArguments("C.M1()", "Default").WithLocation(7, 31),
10215
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(27, 51)
10224
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(6, 51)
10269
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(27, 51)
10278
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M1").WithArguments("C.M1()", "Standard").WithLocation(6, 51)
10320
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(28, 50)
10331
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(7, 50)
10382
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "Unmanaged").WithLocation(26, 43),
10385
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(27, 50)
10396
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "Unmanaged").WithLocation(6, 43),
10399
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "CDecl").WithLocation(7, 50)
10510
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("C.M()", "Standard").WithLocation(9, 52),
10555
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "F", isSuppressed: false).WithArguments("A.F()", "Unmanaged").WithLocation(9, 43)
10599
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Default").WithLocation(10, 39)
10607
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Unmanaged").WithLocation(11, 51)
10616
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "CDecl").WithLocation(12, 54)
10625
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "ThisCall").WithLocation(13, 60)
10634
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Standard").WithLocation(14, 58)
10643
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "FastCall").WithLocation(15, 60)
10652
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "M", isSuppressed: false).WithArguments("C.M()", "Unmanaged").WithLocation(16, 72)
10795
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)
24879
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "C.M").WithArguments("E.extension(C).M()", "Default").WithLocation(5, 32),
24882
Diagnostic(ErrorCode.
ERR_WrongFuncPtrCallingConvention
, "E.M").WithArguments("E.M()", "Default").WithLocation(6, 33));