294 references to WRN_NullReferenceAssignment
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
28nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceAssignment)); 430case ErrorCode.WRN_NullReferenceAssignment: 1945or ErrorCode.WRN_NullReferenceAssignment
FlowAnalysis\NullableWalker.cs (1)
2473ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
Generated\ErrorFacts.Generated.cs (1)
194case ErrorCode.WRN_NullReferenceAssignment:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
7128Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "str1").WithLocation(16, 18),
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
CodeGen\IndexAndRangeTests.cs (1)
1148Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(3, 29)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (43)
FieldKeywordTests.cs (21)
5883Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(4, 27), 5886Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(5, 36), 5889Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(6, 42), 5892Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(7, 33), 5895Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(8, 51), 6420Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24), 6544Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24), 6576Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24), 6899Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24)); 7387Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(9, 24), 7390Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 9), 7393Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(18, 24), 7396Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(19, 9), 7399Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(27, 24), 7442Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(8, 24), 7510Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(15, 9), 7513Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(34, 24), 7516Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(35, 9), 7519Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(47, 14), 7522Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(49, 14) 11960Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(11, 19),
Semantics\CollectionExpressionTests.cs (12)
4535Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(9, 31), 4538Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 26), 4541Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 31)); 15985Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(5, 21)); 16030Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "m() ? a1 : a2").WithLocation(6, 22)); 35210Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "element1").WithLocation(4, 36), 40775Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(11, 21)); 45942Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 25), 45945Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(14, 16)); 45969Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(8, 37)); 46044Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(14, 14), 46047Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F(x)").WithLocation(14, 19),
Semantics\ExtensionOperatorsTests.cs (2)
8961Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x").WithLocation(23, 16), 8968Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--z").WithLocation(25, 9)
Semantics\ExtensionTests.cs (3)
49218Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "oNull").WithLocation(4, 31)); 49271Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "oNull").WithLocation(4, 31)); 49430Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "oNull").WithLocation(4, 31));
Semantics\PrimaryConstructorTests.cs (2)
20533Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p1").WithLocation(6, 17) 20567Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p1").WithLocation(7, 17),
Semantics\RecordTests.cs (3)
9111Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(8, 26)); 9269Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "[AllowNull] string X").WithLocation(5, 10), 9389Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "local").WithLocation(13, 17));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (242)
Semantics\NullableReferenceTypesTests.cs (230)
221Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s5").WithLocation(18, 16), 266Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref s5 : ref s5").WithLocation(18, 17) 1325Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 29) 2819Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(6, 13)); 2825Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(6, 13), 4625Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").WithLocation(7, 16), 4628Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").WithLocation(9, 16) 7929Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(8, 20) 18614Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y26").WithLocation(268, 18), 18617Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y27").WithLocation(274, 20), 18759Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(48, 16), 19492Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y5").WithLocation(34, 17)); 19609Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 22), 32945Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F1").WithLocation(12, 19), 32948Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F3").WithLocation(44, 19)); 33016Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(12, 18), 33025Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(44, 18)); 33919Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr1 *= mc").WithLocation(18, 9), 33925Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr2 *= mcn").WithLocation(20, 9), 33943Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "dr2 /= dcn").WithLocation(44, 9), 34892Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(6, 15) 35473Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(15, 16) 35504Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(10, 15), 35507Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefString()").WithLocation(12, 15) 35531Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(7, 15) 35592Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(11, 15), 35769Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "f2", isSuppressed: false).WithLocation(18, 16) 35860Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(15, 15), 35863Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(25, 28) 36065Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(17, 25), 39751Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(22, 13), 42935Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 13) 44520Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(17, 16), 44523Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s4").WithLocation(21, 16), 44605Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44608Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44611Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44614Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44617Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44620Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44641Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44644Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44647Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44650Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44653Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44656Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44871Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44874Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44877Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44880Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44883Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44886Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44895Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t7").WithLocation(47, 30), 44901Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t8").WithLocation(51, 30) 45121Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Property += c").WithLocation(10, 9), 45345Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(28, 29), 45348Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(29, 30), 45351Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(30, 30), 45354Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(34, 29), 45357Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(35, 30), 45360Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(36, 30), 45508Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 45511Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 45514Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 31), 45517Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 45520Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 45523Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 31), 47214Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16), 47759Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 14), 48327Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(9, 16), 48330Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16) 55197Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(6, 33), 55203Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 34), 55209Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(12, 33), 55215Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(15, 34)); 57179Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref x : ref y").WithLocation(4, 63), 57185Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref x : ref y!").WithLocation(6, 63), 58948Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(9, 20), 58954Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(26, 24), 59570Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z2").WithLocation(17, 17), 59573Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z5").WithLocation(34, 35), 59576Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z6").WithLocation(39, 39) 59632Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(37, 17), 59635Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(38, 19) 60168Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 24), 60171Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(7, 24), 61034Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(15, 27) 61108Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 35), 61536Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(9, 35), 61539Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(14, 35) 61639Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 39), 63032Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 63119Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 67698Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(15, 17) 68699Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "string s1").WithLocation(6, 7), 69957Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a2").WithLocation(11, 19), 69960Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d2").WithLocation(14, 24)); 70043Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a1").WithLocation(9, 20)); 70103Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 20)); 74347Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 74350Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 74356Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6--").WithLocation(37, 9), 74362Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x7--").WithLocation(43, 9) 74443Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 74446Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 74550Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4[0]--").WithLocation(26, 19), 74553Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5[0]").WithLocation(32, 18), 74697Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "++x1").WithLocation(10, 16), 74990Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2 += y2").WithLocation(18, 18), 74999Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3 += y3").WithLocation(24, 9), 75014Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6 += y6").WithLocation(42, 9)); 75536Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(45, 14) 77202Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17), 77246Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17) 77426Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(18, 18), 77432Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 77435Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 77459Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 77462Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 77627Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(10, 20), 77630Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(11, 20), 77765Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 77906Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 79066Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "null as string").WithLocation(15, 22), 79078Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName").WithLocation(19, 23), 79081Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName ?? null").WithLocation(20, 22) 79865Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(8, 39), 80102Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(10, 15), 80134Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 15), 80140Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(10, 22), 80143Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(10, 29), 80149Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 36)); 80188Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(15, 15), 80203Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(15, 29), 80254Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(11, 22), 80260Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(11, 36), 80314Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefReturn()").WithLocation(15, 32)); 81598Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "S1").WithLocation(13, 31), 81604Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F()").WithLocation(14, 31), 81780Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 29), 81786Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 29), 81792Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 29), 81795Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 32), 82060Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 19), 82069Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 82169Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 22), 82172Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 22), 82178Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 22) 82337Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 27), 82372Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 33), 82983Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 83006Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 83029Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 83054Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 89291Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(10, 36), 89294Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c1.F").WithLocation(11, 36), 89300Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(17, 31), 89303Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2.F").WithLocation(18, 31), 89441Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(32, 14), 89444Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3").WithLocation(33, 15), 89450Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(39, 14), 89453Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4").WithLocation(40, 15), 89459Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(47, 15), 89462Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c.F").WithLocation(48, 15), 89468Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(55, 15)); 94816Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 24), 96663Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(17, 22), 96669Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B, S?))t2").WithLocation(24, 18), 96715Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(18, 36), 96721Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((object x, (B, S?) y))t2").WithLocation(25, 18), 96808Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(13, 22), 96814Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B?, A))t2").WithLocation(19, 18), 97373Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 97405Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 97438Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(13, 33)); 97485Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 34), 97491Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(21, 34)); 97732Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(26, 16), 110037Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 39), 110040Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 39), 110046Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)u").WithLocation(8, 59), 110052Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)(object)u").WithLocation(9, 47), 117090Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(19, 18) 119574Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z0").WithLocation(8, 22) 123710Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 123745Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 125048Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 125057Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 125101Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 125110Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 132373Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2").WithLocation(6, 20), 135594Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 135672Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 135722Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 135768Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 19), 147726Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 34), 147729Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 34)); 148919Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P3").WithLocation(21, 13)); 148953Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 18)); 149313Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 12), 149316Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 23)); 149345Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 14), 149348Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(15, 14)); 149799Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 32), 149802Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 37), 149805Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 149808Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14)); 149839Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 30), 149842Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 35), 149845Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 44), 149848Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 35), 149851Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 40), 149854Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 49), 149857Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 149860Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 14), 149863Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(15, 14), 149866Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14), 149869Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(17, 14), 149872Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 14)); 149952Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 149955Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 149958Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 149961Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 149992Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 60), 150034Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 150037Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 150040Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 150043Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 154129Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(13, 16), 160555Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 36),
Semantics\RecordStructTests.cs (1)
8126Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(8, 26));
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)
3246Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o1").WithLocation(13, 25),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
330case ErrorCode.WRN_NullReferenceAssignment: