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