25 references to ERR_SizeofUnsafe
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Unsafe.cs (1)
69
: new CSDiagnosticInfo(ErrorCode.
ERR_SizeofUnsafe
, sizeOfTypeOpt);
Errors\ErrorFacts.cs (1)
744
case ErrorCode.
ERR_SizeofUnsafe
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Emit\NumericIntPtrTests.cs (4)
1301
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(System.IntPtr)").WithArguments("nint").WithLocation(5, 13),
1304
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(System.UIntPtr)").WithArguments("nuint").WithLocation(6, 13),
1307
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(nint)").WithArguments("nint").WithLocation(7, 13),
1310
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(nuint)").WithArguments("nuint").WithLocation(8, 13));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (5)
IOperation\IOperationTests_ISizeOfExpression.cs (5)
65
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(C)").WithArguments("C").WithLocation(8, 23)
120
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(UndefinedType)").WithArguments("UndefinedType").WithLocation(8, 23)
151
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(i)").WithArguments("i").WithLocation(8, 23)
195
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(M2").WithArguments("M2").WithLocation(8, 23)
226
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof()").WithArguments("?").WithLocation(8, 23)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\ImplicitObjectCreationTests.cs (1)
2826
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(").WithArguments("?").WithLocation(6, 13),
Semantics\LocalFunctionTests.cs (2)
7897
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(TParameter)").WithArguments("TParameter").WithLocation(8, 36),
7900
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(TParameter)").WithArguments("TParameter").WithLocation(11, 29)
Semantics\NativeIntegerTests.cs (4)
4313
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(System.IntPtr)").WithArguments("System.IntPtr").WithLocation(5, 13),
4316
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(System.UIntPtr)").WithArguments("System.UIntPtr").WithLocation(6, 13),
4319
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(nint)").WithArguments("nint").WithLocation(7, 13),
4322
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(nuint)").WithArguments("nuint").WithLocation(8, 13));
Semantics\SemanticErrorTests.cs (1)
8587
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(S)").WithArguments("S"),
Semantics\UnsafeTests.cs (6)
7543
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(S)").WithArguments("S"));
7569
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(int*)").WithArguments("int*"),
7578
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(int**)").WithArguments("int**"),
7584
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(void*)").WithArguments("void*"),
7593
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(void**)").WithArguments("void**")
7727
Diagnostic(ErrorCode.
ERR_SizeofUnsafe
, "sizeof(").WithArguments("?"));