79 references to WRN_MemberNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
77
nullableWarnings.Add(GetId(ErrorCode.
WRN_MemberNotNull
));
487
case ErrorCode.
WRN_MemberNotNull
:
2047
or ErrorCode.
WRN_MemberNotNull
FlowAnalysis\NullableWalker.cs (1)
1091
Diagnostics.Add(ErrorCode.
WRN_MemberNotNull
, syntax.GetLocation(), member.Name);
Generated\ErrorFacts.Generated.cs (1)
240
case ErrorCode.
WRN_MemberNotNull
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (73)
Semantics\NullableReferenceTypesTests.cs (73)
21019
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21022
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21108
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21111
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21151
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21154
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21685
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(36, 9),
21688
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(36, 9));
21772
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(47, 13),
21775
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(47, 13));
22119
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 9),
22122
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 9));
22153
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(16, 13),
22156
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(16, 13));
22196
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(24, 17),
22199
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(24, 17));
22232
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 9),
22235
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 9));
22872
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(27, 5),
22875
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(27, 5),
22878
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(27, 5),
23127
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 5),
23130
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 5),
23133
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(16, 5),
23136
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2b").WithLocation(16, 5),
23248
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(29, 13),
23251
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(29, 13),
23254
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(29, 13),
23257
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(35, 9),
23260
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(35, 9),
23263
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(35, 9),
23361
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(18, 13),
23364
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(18, 13),
23367
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(18, 13),
23370
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(24, 9),
23373
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 9),
23376
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 9),
23675
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field3").WithLocation(25, 17),
23678
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field4").WithLocation(25, 17)
23780
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field1").WithLocation(29, 20),
23783
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field2").WithLocation(29, 20)
24010
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(39, 9)
24265
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
24268
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
24334
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
24337
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(23, 5),
24340
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(23, 5),
24343
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
24379
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field1").WithLocation(19, 16),
24382
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field2").WithLocation(19, 16),
24385
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field3").WithLocation(19, 16),
24388
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 15),
24391
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 15),
24394
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(20, 15)
24498
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 19),
24501
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 19)
24539
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(19, 5)
24575
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 5),
24578
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 5)
24643
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(16, 13),
24646
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(16, 13),
24649
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(19, 5)
24688
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(16, 13),
24691
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(16, 13),
24694
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(19, 9)
24738
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field1").WithLocation(23, 15),
24741
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field2").WithLocation(23, 15),
24744
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 15),
24747
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 15)
25011
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("_field").WithLocation(10, 55));
32835
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("Prop").WithLocation(18, 5));
32876
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field").WithLocation(18, 5));
156279
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field").WithLocation(10, 5));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
382
case ErrorCode.
WRN_MemberNotNull
: