24 references to ERR_NullNotValid
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Query.cs (1)
939diagnostics.Add(ErrorCode.ERR_NullNotValid, node.Location);
Binder\ForEachLoopBinder.cs (1)
1208diagnostics.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)
4268Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(8, 33) 6272Diagnostic(ErrorCode.ERR_NullNotValid, "(IAsyncEnumerable<int>)null").WithLocation(9, 33) 6299Diagnostic(ErrorCode.ERR_NullNotValid, "(C)null").WithLocation(9, 33) 6371Diagnostic(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)
10488Diagnostic(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), 90494Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable?)null").WithLocation(7, 27), 90497Diagnostic(ErrorCode.ERR_NullNotValid, "(IEnumerable<object>)default").WithLocation(10, 27), 90500Diagnostic(ErrorCode.ERR_NullNotValid, "default(IEnumerable)").WithLocation(13, 27), 91495Diagnostic(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)
6931new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.ERR_NullNotValid, Line = 9, Column = 27 } , 6932new ErrorDescription { Code = (int)ErrorCode.ERR_NullNotValid, Line = 10, Column = 27 }}); 6948VerifyDiagnostics(Diagnostic(ErrorCode.ERR_NullNotValid, "default(int[])"));
Semantics\TargetTypedDefaultTests.cs (1)
2750Diagnostic(ErrorCode.ERR_NullNotValid, "null").WithLocation(7, 27)