24 references to ERR_NullNotValid
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Query.cs (1)
950diagnostics.Add(ErrorCode.ERR_NullNotValid, node.Location);
Binder\ForEachLoopBinder.cs (1)
1211diagnostics.Add(ErrorCode.ERR_NullNotValid, collectionExpr.Syntax.Location);
Errors\ErrorFacts.cs (1)
769or ErrorCode.ERR_NullNotValid
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenAwaitForeachTests.cs (4)
6569Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(8, 33) 9935Diagnostic(ErrorCode.ERR_NullNotValid, "(IAsyncEnumerable<int>)null").WithLocation(9, 33) 9962Diagnostic(ErrorCode.ERR_NullNotValid, "(C)null").WithLocation(9, 33) 10161Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(8, 33)
CodeGen\CodeGenForEachTests.cs (4)
2440Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable<int>)null").WithLocation(8, 27) 2466Diagnostic(ErrorCode.ERR_NullNotValid, "(C)null").WithLocation(8, 27) 2489Diagnostic(ErrorCode.ERR_NullNotValid, "(int[])null").WithLocation(7, 27) 2635Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(7, 27)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\CollectionExpressionTests.cs (1)
10489Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(5, 22));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\ForEachTests.cs (2)
62Diagnostic(ErrorCode.ERR_NullNotValid, "null")); 104Diagnostic(ErrorCode.ERR_NullNotValid, "default(int[])"));
Semantics\NullableReferenceTypesTests.cs (5)
1477Diagnostic(ErrorCode.ERR_NullNotValid, "select x").WithLocation(8, 29), 90516Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable?)null").WithLocation(7, 27), 90519Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable<object>)default").WithLocation(10, 27), 90522Diagnostic(ErrorCode.ERR_NullNotValid, "default(IEnumerable)").WithLocation(13, 27), 91517Diagnostic(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)
6976new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.ERR_NullNotValid, Line = 9, Column = 27 } , 6977new ErrorDescription { Code = (int)ErrorCode.ERR_NullNotValid, Line = 10, Column = 27 }}); 6993VerifyDiagnostics(Diagnostic(ErrorCode.ERR_NullNotValid, "default(int[])"));
Semantics\TargetTypedDefaultTests.cs (1)
2750Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(7, 27)