12 references to ERR_InvalidUnmanagedCallersOnlyCallConv
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2148
or ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
Symbols\MethodSymbol.cs (1)
1021
diagnostics?.Add(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, location!, callConvTypedConstant.ValueInternal ?? "null");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenFunctionPointersTests.cs (10)
7907
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTest) })").WithArguments("CallConvTest").WithLocation(26, 6)
7952
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTestA.CallConvTestB) })").WithArguments("System.Runtime.CompilerServices.CallConvTestA.CallConvTestB").WithLocation(31, 6)
7978
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTest) })").WithArguments("System.Runtime.CompilerServices.CallConvTest").WithLocation(12, 6)
7998
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(ExtensionAttribute) })").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").WithLocation(6, 6)
8022
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new System.Type[] { null })").WithArguments("null").WithLocation(5, 6)
8087
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new System.Type[] { default })").WithArguments("null").WithLocation(5, 6)
9916
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(string) })").WithArguments("string").WithLocation(5, 6),
9968
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(UnmanagedCallersOnlyAttribute) })").WithArguments("System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute").WithLocation(7, 10),
9990
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(C) })").WithArguments("C").WithLocation(5, 6)
10010
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(B) })").WithArguments("A.B").WithLocation(6, 6)