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
:
2046
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)
21012
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21015
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21101
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21104
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21144
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 9),
21147
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 9));
21678
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(36, 9),
21681
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(36, 9));
21765
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(47, 13),
21768
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(47, 13));
22112
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 9),
22115
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 9));
22146
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(16, 13),
22149
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(16, 13));
22189
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(24, 17),
22192
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(24, 17));
22225
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 9),
22228
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 9));
22865
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(27, 5),
22868
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(27, 5),
22871
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(27, 5),
23120
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 5),
23123
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 5),
23126
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(16, 5),
23129
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2b").WithLocation(16, 5),
23241
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(29, 13),
23244
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(29, 13),
23247
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(29, 13),
23250
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(35, 9),
23253
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(35, 9),
23256
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(35, 9),
23354
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field0").WithLocation(18, 13),
23357
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(18, 13),
23360
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(18, 13),
23363
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field0").WithLocation(24, 9),
23366
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 9),
23369
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 9),
23668
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field3").WithLocation(25, 17),
23671
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field4").WithLocation(25, 17)
23773
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field1").WithLocation(29, 20),
23776
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "true").WithArguments("field2").WithLocation(29, 20)
24003
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(39, 9)
24258
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
24261
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
24327
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(23, 5),
24330
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(23, 5),
24333
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(23, 5),
24336
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field4").WithLocation(23, 5)
24372
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field1").WithLocation(19, 16),
24375
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field2").WithLocation(19, 16),
24378
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "1").WithArguments("field3").WithLocation(19, 16),
24381
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 15),
24384
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 15),
24387
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field3").WithLocation(20, 15)
24491
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(16, 19),
24494
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(16, 19)
24532
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(19, 5)
24568
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(20, 5),
24571
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(20, 5)
24636
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field1").WithLocation(16, 13),
24639
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return;").WithArguments("field2").WithLocation(16, 13),
24642
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(19, 5)
24681
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(16, 13),
24684
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field2").WithLocation(16, 13),
24687
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 0;").WithArguments("field1").WithLocation(19, 9)
24731
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field1").WithLocation(23, 15),
24734
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "return 42;").WithArguments("field2").WithLocation(23, 15),
24737
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field1").WithLocation(24, 15),
24740
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field2").WithLocation(24, 15)
25004
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("_field").WithLocation(10, 55));
32807
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("Prop").WithLocation(18, 5));
32848
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field").WithLocation(18, 5));
156217
Diagnostic(ErrorCode.
WRN_MemberNotNull
, "}").WithArguments("field").WithLocation(10, 5));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
394
case ErrorCode.
WRN_MemberNotNull
: