23 references to ERR_NullNotValid
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Query.cs (1)
936diagnostics.Add(ErrorCode.ERR_NullNotValid, node.Location);
Binder\ForEachLoopBinder.cs (1)
1004diagnostics.Add(ErrorCode.ERR_NullNotValid, _syntax.Expression.Location);
Errors\ErrorFacts.cs (1)
708case ErrorCode.ERR_NullNotValid:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenAwaitForeachTests.cs (4)
3416Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(8, 33) 5338Diagnostic(ErrorCode.ERR_NullNotValid, "(IAsyncEnumerable<int>)null").WithLocation(9, 33) 5365Diagnostic(ErrorCode.ERR_NullNotValid, "(C)null").WithLocation(9, 33) 5437Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(8, 33)
CodeGen\CodeGenForEachTests.cs (4)
2434Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable<int>)null").WithLocation(8, 27) 2460Diagnostic(ErrorCode.ERR_NullNotValid, "(C)null").WithLocation(8, 27) 2483Diagnostic(ErrorCode.ERR_NullNotValid, "(int[])null").WithLocation(7, 27) 2629Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(7, 27)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\ForEachTests.cs (2)
61Diagnostic(ErrorCode.ERR_NullNotValid, "null")); 103Diagnostic(ErrorCode.ERR_NullNotValid, "default(int[])"));
Semantics\NullableReferenceTypesTests.cs (5)
1465Diagnostic(ErrorCode.ERR_NullNotValid, "select x").WithLocation(8, 29), 86805Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable?)null").WithLocation(7, 27), 86808Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable<object>)default").WithLocation(10, 27), 86811Diagnostic(ErrorCode.ERR_NullNotValid, "default(IEnumerable)").WithLocation(13, 27), 87768Diagnostic(ErrorCode.ERR_NullNotValid, "(string)null").WithLocation(22, 27),
Semantics\QueryTests.cs (1)
3207Diagnostic(ErrorCode.ERR_NullNotValid, "select x").WithLocation(7, 42)
Semantics\SemanticErrorTests.cs (3)
6933new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.ERR_NullNotValid, Line = 9, Column = 27 } , 6934new ErrorDescription { Code = (int)ErrorCode.ERR_NullNotValid, Line = 10, Column = 27 }}); 6950VerifyDiagnostics(Diagnostic(ErrorCode.ERR_NullNotValid, "default(int[])"));
Semantics\TargetTypedDefaultTests.cs (1)
2750Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(7, 27)