248 references to WRN_NullReferenceAssignment
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
28nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceAssignment)); 418case ErrorCode.WRN_NullReferenceAssignment: 1888case ErrorCode.WRN_NullReferenceAssignment:
FlowAnalysis\NullableWalker.cs (1)
2284ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
Generated\ErrorFacts.Generated.cs (1)
195case ErrorCode.WRN_NullReferenceAssignment:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
7116Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "str1").WithLocation(16, 18),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (240)
Semantics\NullableReferenceTypesTests.cs (225)
209Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s5").WithLocation(18, 16), 254Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref s5 : ref s5").WithLocation(18, 17) 1313Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 29) 2808Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(6, 13)); 2814Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(6, 13), 4606Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").WithLocation(7, 16), 4609Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").WithLocation(9, 16) 7907Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(8, 20), 7910Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(8, 29) 18571Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y26").WithLocation(268, 18), 18574Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y27").WithLocation(274, 20), 18716Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(48, 16), 19449Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y5").WithLocation(34, 17)); 19566Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 22), 30978Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F1").WithLocation(12, 19), 30981Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F3").WithLocation(44, 19)); 31049Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(12, 18), 31058Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(44, 18)); 31952Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr1 *= mc").WithLocation(18, 9), 31958Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr2 *= mcn").WithLocation(20, 9), 31976Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "dr2 /= dcn").WithLocation(44, 9), 32925Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(6, 15) 33506Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(15, 16) 33537Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(10, 15), 33540Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefString()").WithLocation(12, 15) 33564Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(7, 15) 33625Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(11, 15), 33802Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "f2", isSuppressed: false).WithLocation(18, 16) 33893Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(15, 15), 33896Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(25, 28) 34098Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(17, 25), 37656Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(22, 13), 40840Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 13) 42425Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(17, 16), 42428Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s4").WithLocation(21, 16), 42510Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 42513Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 42516Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 42519Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 42522Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 42525Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 42546Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 42549Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 42552Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 42555Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 42558Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 42561Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 42776Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 42779Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 42782Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 42785Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 42788Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 42791Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 42800Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t7").WithLocation(47, 30), 42806Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t8").WithLocation(51, 30) 43024Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Property += c").WithLocation(10, 9), 43195Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(28, 29), 43198Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(29, 30), 43201Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(30, 30), 43204Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(34, 29), 43207Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(35, 30), 43210Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(36, 30), 43358Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 43361Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 43364Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 31), 43367Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 43370Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 43373Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 31), 45064Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16), 45609Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 14), 46177Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(9, 16), 46180Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16) 56439Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(9, 20), 56445Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(26, 24), 57033Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z2").WithLocation(17, 17), 57036Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z5").WithLocation(34, 35), 57039Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z6").WithLocation(39, 39) 57095Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(37, 17), 57098Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(38, 19) 57631Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 24), 57634Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(7, 24), 58503Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(15, 27) 58577Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 35), 59005Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(9, 35), 59008Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(14, 35) 59108Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 39), 60501Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 60588Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 64223Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(15, 17) 65176Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "string s1").WithLocation(6, 7), 66434Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a2").WithLocation(11, 19), 66437Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d2").WithLocation(14, 24)); 66520Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a1").WithLocation(9, 20)); 66580Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 20)); 70814Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 70817Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 70823Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6--").WithLocation(37, 9), 70829Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x7--").WithLocation(43, 9) 70910Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 70913Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 71017Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4[0]--").WithLocation(26, 19), 71020Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5[0]").WithLocation(32, 18), 71164Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "++x1").WithLocation(10, 16), 71460Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2 += y2").WithLocation(18, 18), 71469Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3 += y3").WithLocation(24, 9), 71484Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6 += y6").WithLocation(42, 9)); 71777Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(45, 14) 73443Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17), 73487Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17) 73667Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(18, 18), 73673Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 73676Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 73700Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 73703Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 73868Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(10, 20), 73871Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(11, 20), 74006Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 74147Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 75309Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "null as string").WithLocation(15, 22), 75321Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName").WithLocation(19, 23), 75324Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName ?? null").WithLocation(20, 22) 76108Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(8, 39), 76345Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(10, 15), 76377Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 15), 76383Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(10, 22), 76386Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(10, 29), 76392Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 36)); 76431Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(15, 15), 76446Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(15, 29), 76497Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(11, 22), 76503Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(11, 36), 76557Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefReturn()").WithLocation(15, 32)); 77847Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "S1").WithLocation(13, 31), 77853Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F()").WithLocation(14, 31), 78029Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 29), 78035Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 29), 78041Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 29), 78044Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 32), 78309Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 19), 78318Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 78418Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 22), 78421Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 22), 78427Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 22) 78586Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 27), 78621Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 33), 79232Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 79255Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 79278Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 79303Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 85540Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(10, 36), 85543Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c1.F").WithLocation(11, 36), 85549Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(17, 31), 85552Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2.F").WithLocation(18, 31), 85690Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(32, 14), 85693Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3").WithLocation(33, 15), 85699Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(39, 14), 85702Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4").WithLocation(40, 15), 85708Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(47, 15), 85711Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c.F").WithLocation(48, 15), 85717Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(55, 15)); 90962Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 24), 92809Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(17, 22), 92815Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B, S?))t2").WithLocation(24, 18), 92861Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(18, 36), 92867Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((object x, (B, S?) y))t2").WithLocation(25, 18), 92954Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(13, 22), 92960Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B?, A))t2").WithLocation(19, 18), 93519Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 93551Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 93584Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(13, 33)); 93631Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 34), 93637Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(21, 34)); 93878Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(26, 16), 106183Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 39), 106186Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 39), 106192Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)u").WithLocation(8, 59), 106198Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)(object)u").WithLocation(9, 47), 113236Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(19, 18) 115720Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z0").WithLocation(8, 22) 119856Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 119891Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 121194Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 121203Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 121247Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 121256Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 128522Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2").WithLocation(6, 20), 131743Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 131821Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 131871Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 131917Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 19), 143181Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 34), 143184Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 34)); 144374Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P3").WithLocation(21, 13)); 144408Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 18)); 144768Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 12), 144771Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 23)); 144800Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 14), 144803Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(15, 14)); 145254Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 32), 145257Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 37), 145260Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 145263Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14)); 145294Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 30), 145297Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 35), 145300Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 44), 145303Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 35), 145306Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 40), 145309Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 49), 145312Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 145315Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 14), 145318Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(15, 14), 145321Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14), 145324Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(17, 14), 145327Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 14)); 145407Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 145410Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 145413Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 145416Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 145447Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 60), 145489Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 145492Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 145495Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 145498Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 149584Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(13, 16), 155958Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 36),
Semantics\RecordStructTests.cs (1)
8014Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(8, 26));
Semantics\RecordTests.cs (3)
9056Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(8, 26)); 9214Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "[AllowNull] string X").WithLocation(5, 10), 9334Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "local").WithLocation(13, 17));
Semantics\StructConstructorTests.cs (6)
3295Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "GetValue()").WithLocation(21, 24)); 3310Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "GetValue()").WithLocation(21, 24)); 3360Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Utils.GetValue()").WithLocation(4, 17), 3363Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Utils.GetValue()").WithLocation(9, 17), 4604Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(24, 18), 4635Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(24, 18),
Semantics\UninitializedNonNullableFieldTests.cs (5)
246Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 21), 249Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(6, 21)); 673Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 48), 2402Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "M(Field2)").WithLocation(6, 28), 2405Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "M(Field1)").WithLocation(7, 28)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\NullablePublicAPITests.cs (1)
3247Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o1").WithLocation(13, 25),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
320case ErrorCode.WRN_NullReferenceAssignment: