12 references to ERR_InvalidUnmanagedCallersOnlyCallConv
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2091
case ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
:
Symbols\MethodSymbol.cs (1)
1007
diagnostics?.Add(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, location!, callConvTypedConstant.ValueInternal ?? "null");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenFunctionPointersTests.cs (10)
7894
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTest) })").WithArguments("CallConvTest").WithLocation(26, 6)
7939
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTestA.CallConvTestB) })").WithArguments("System.Runtime.CompilerServices.CallConvTestA.CallConvTestB").WithLocation(31, 6)
7965
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvTest) })").WithArguments("System.Runtime.CompilerServices.CallConvTest").WithLocation(12, 6)
7985
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(ExtensionAttribute) })").WithArguments("System.Runtime.CompilerServices.ExtensionAttribute").WithLocation(6, 6)
8009
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new System.Type[] { null })").WithArguments("null").WithLocation(5, 6)
8074
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new System.Type[] { default })").WithArguments("null").WithLocation(5, 6)
9869
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(string) })").WithArguments("string").WithLocation(5, 6),
9921
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(UnmanagedCallersOnlyAttribute) })").WithArguments("System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute").WithLocation(7, 10),
9943
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(C) })").WithArguments("C").WithLocation(5, 6)
9963
Diagnostic(ErrorCode.
ERR_InvalidUnmanagedCallersOnlyCallConv
, "UnmanagedCallersOnly(CallConvs = new[] { typeof(B) })").WithArguments("A.B").WithLocation(6, 6)