59 references to WRN_MemberNotNull
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
77
nullableWarnings.Add(GetId(ErrorCode.
WRN_MemberNotNull
));
475
case ErrorCode.
WRN_MemberNotNull
:
1990
case ErrorCode.
WRN_MemberNotNull
:
FlowAnalysis\NullableWalker.cs (1)
765
Diagnostics.Add(ErrorCode.
WRN_MemberNotNull
, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation(), member.Name);
Generated\ErrorFacts.Generated.cs (1)
241
case ErrorCode.
WRN_MemberNotNull
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (53)
Semantics\NullableReferenceTypesTests.cs (53)
21061
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(27, 5),
21064
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(27, 5),
21067
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(27, 5),
21316
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 5),
21319
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 5),
21322
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(16, 5),
21325
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2b").WithLocation(16, 5),
21437
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(29, 13),
21440
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(29, 13),
21443
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(29, 13),
21446
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(35, 9),
21449
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(35, 9),
21452
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(35, 9),
21550
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(18, 13),
21553
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(18, 13),
21556
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(18, 13),
21559
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(24, 9),
21562
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 9),
21565
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 9),
21864
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field3").WithLocation(25, 17),
21867
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field4").WithLocation(25, 17)
21969
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field1").WithLocation(29, 20),
21972
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field2").WithLocation(29, 20)
22199
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(39, 9)
22454
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
22457
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
22523
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
22526
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(23, 5),
22529
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(23, 5),
22532
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
22568
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field1").WithLocation(19, 16),
22571
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field2").WithLocation(19, 16),
22574
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field3").WithLocation(19, 16),
22577
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 15),
22580
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 15),
22583
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(20, 15)
22687
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 19),
22690
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 19)
22728
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(19, 5)
22764
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 5),
22767
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 5)
22832
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(16, 13),
22835
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(16, 13),
22838
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(19, 5)
22877
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(16, 13),
22880
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(16, 13),
22883
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(19, 9)
22927
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field1").WithLocation(23, 15),
22930
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field2").WithLocation(23, 15),
22933
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 15),
22936
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 15)
30868
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("Prop").WithLocation(18, 5));
30909
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field").WithLocation(18, 5));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
372
case ErrorCode.
WRN_MemberNotNull
: