79 references to WRN_MemberNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
77
nullableWarnings.Add(GetId(ErrorCode.
WRN_MemberNotNull
));
488
case ErrorCode.
WRN_MemberNotNull
:
2047
or ErrorCode.
WRN_MemberNotNull
FlowAnalysis\NullableWalker.cs (1)
1068
Diagnostics.Add(ErrorCode.
WRN_MemberNotNull
, syntax.GetLocation(), member.Name);
Generated\ErrorFacts.Generated.cs (1)
241
case ErrorCode.
WRN_MemberNotNull
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (73)
Semantics\NullableReferenceTypesTests.cs (73)
21015
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21018
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21104
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21107
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21147
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21150
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21677
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(36, 9),
21680
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(36, 9));
21764
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(47, 13),
21767
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(47, 13));
22111
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 9),
22114
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 9));
22145
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(16, 13),
22148
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(16, 13));
22188
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(24, 17),
22191
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(24, 17));
22224
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 9),
22227
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 9));
22864
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(27, 5),
22867
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(27, 5),
22870
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(27, 5),
23119
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 5),
23122
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 5),
23125
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(16, 5),
23128
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2b").WithLocation(16, 5),
23240
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(29, 13),
23243
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(29, 13),
23246
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(29, 13),
23249
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(35, 9),
23252
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(35, 9),
23255
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(35, 9),
23353
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(18, 13),
23356
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(18, 13),
23359
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(18, 13),
23362
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(24, 9),
23365
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 9),
23368
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 9),
23667
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field3").WithLocation(25, 17),
23670
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field4").WithLocation(25, 17)
23772
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field1").WithLocation(29, 20),
23775
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field2").WithLocation(29, 20)
24002
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(39, 9)
24257
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
24260
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
24326
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
24329
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(23, 5),
24332
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(23, 5),
24335
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
24371
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field1").WithLocation(19, 16),
24374
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field2").WithLocation(19, 16),
24377
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field3").WithLocation(19, 16),
24380
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 15),
24383
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 15),
24386
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(20, 15)
24490
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 19),
24493
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 19)
24531
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(19, 5)
24567
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 5),
24570
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 5)
24635
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(16, 13),
24638
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(16, 13),
24641
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(19, 5)
24680
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(16, 13),
24683
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(16, 13),
24686
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(19, 9)
24730
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field1").WithLocation(23, 15),
24733
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field2").WithLocation(23, 15),
24736
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 15),
24739
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 15)
25003
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("_field").WithLocation(10, 55));
32806
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("Prop").WithLocation(18, 5));
32847
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field").WithLocation(18, 5));
156164
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field").WithLocation(10, 5));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
394
case ErrorCode.
WRN_MemberNotNull
: