26 references to ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder.cs (1)
754
: ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
,
Errors\ErrorFacts.cs (1)
2099
case ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
:
Errors\LazyUnmanagedCallersOnlyMethodCalledDiagnosticInfo.cs (1)
43
: ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenFunctionPointersTests.cs (21)
8048
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "C.M()").WithArguments("C.M()").WithLocation(6, 9)
8568
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "M1()", isSuppressed: false).WithArguments("C.M1()").WithLocation(10, 9),
8601
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "E.M1()", isSuppressed: false).WithArguments("D.M1()").WithLocation(8, 9),
8634
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "M1()", isSuppressed: false).WithArguments("D.M1()").WithLocation(8, 9),
8673
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "C.M1()").WithArguments("C.M1()").WithLocation(6, 9),
8724
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "C.M1()").WithArguments("C.M1()").WithLocation(6, 9)
9353
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "foreach").WithArguments("CExt.GetEnumerator(S)").WithLocation(7, 9)
9511
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "s.Extension()").WithArguments("CExt.Extension(S)").WithLocation(8, 9),
9514
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "CExt.Extension(s)").WithArguments("CExt.Extension(S)").WithLocation(9, 9)
9545
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "s").WithArguments("CExt.Deconstruct(S, out int, out int)").WithLocation(9, 24),
9548
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "s").WithArguments("CExt.Deconstruct(S, out int, out int)").WithLocation(10, 20),
9551
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "ls").WithArguments("CExt.Deconstruct(S, out int, out int)").WithLocation(11, 32),
9554
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "(int _, int _)").WithArguments("CExt.Deconstruct(S, out int, out int)").WithLocation(12, 18),
9591
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "1").WithArguments("CExt.Add(S, int)").WithLocation(10, 23),
9594
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "2").WithArguments("CExt.Add(S, int)").WithLocation(10, 26),
9597
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "3").WithArguments("CExt.Add(S, int)").WithLocation(10, 29)
9630
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "await s").WithArguments("CExt.GetAwaiter(S)").WithLocation(8, 9)
9663
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "s").WithArguments("CExt.GetPinnableReference(S)").WithLocation(10, 29),
9985
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "F()").WithArguments("C.F()").WithLocation(7, 39),
10046
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "F()", isSuppressed: false).WithArguments("C.F()").WithLocation(12, 11),
10090
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "F()", isSuppressed: false).WithArguments("C.F(int)").WithLocation(7, 26),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Retargeting\RetargetingTests.cs (2)
1069
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "C.M(1)").WithArguments("C.M(int)").WithLocation(1, 1)
1146
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeCalledDirectly
, "C.M(1)").WithArguments("C.M(int)").WithLocation(1, 1)