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