294 references to WRN_NullReferenceAssignment
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
28nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceAssignment)); 430case ErrorCode.WRN_NullReferenceAssignment: 1944or 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)
4536Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(9, 31), 4539Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 26), 4542Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 31)); 14146Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(5, 21)); 14191Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "m() ? a1 : a2").WithLocation(6, 22)); 32613Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "element1").WithLocation(4, 36), 38006Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(11, 21)); 43170Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 25), 43173Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(14, 16)); 43197Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(8, 37)); 43272Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(14, 14), 43275Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F(x)").WithLocation(14, 19),
Semantics\ExtensionOperatorsTests.cs (2)
8952Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x").WithLocation(23, 16), 8959Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--z").WithLocation(25, 9)
Semantics\ExtensionTests.cs (3)
49082Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "oNull").WithLocation(4, 31)); 49135Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "oNull").WithLocation(4, 31)); 49294Diagnostic(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), 4618Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").WithLocation(7, 16), 4621Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y0").WithLocation(9, 16) 7922Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(8, 20) 18607Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y26").WithLocation(268, 18), 18610Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y27").WithLocation(274, 20), 18752Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(48, 16), 19485Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y5").WithLocation(34, 17)); 19602Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 22), 32917Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F1").WithLocation(12, 19), 32920Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F3").WithLocation(44, 19)); 32988Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(12, 18), 32997Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(44, 18)); 33891Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr1 *= mc").WithLocation(18, 9), 33897Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr2 *= mcn").WithLocation(20, 9), 33915Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "dr2 /= dcn").WithLocation(44, 9), 34864Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(6, 15) 35445Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(15, 16) 35476Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(10, 15), 35479Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefString()").WithLocation(12, 15) 35503Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(7, 15) 35564Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(11, 15), 35741Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "f2", isSuppressed: false).WithLocation(18, 16) 35832Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(15, 15), 35835Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(25, 28) 36037Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(17, 25), 39723Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(22, 13), 42907Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 13) 44492Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(17, 16), 44495Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s4").WithLocation(21, 16), 44577Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44580Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44583Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44586Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44589Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44592Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44613Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44616Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44619Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44622Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44625Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44628Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44843Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44846Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44849Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44852Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44855Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44858Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44867Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t7").WithLocation(47, 30), 44873Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t8").WithLocation(51, 30) 45093Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Property += c").WithLocation(10, 9), 45317Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(28, 29), 45320Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(29, 30), 45323Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(30, 30), 45326Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(34, 29), 45329Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(35, 30), 45332Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(36, 30), 45480Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 45483Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 45486Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 31), 45489Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 45492Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 45495Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 31), 47186Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16), 47731Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 14), 48299Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(9, 16), 48302Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16) 55157Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(6, 33), 55163Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 34), 55169Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(12, 33), 55175Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(15, 34)); 57139Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref x : ref y").WithLocation(4, 63), 57145Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref x : ref y!").WithLocation(6, 63), 58908Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(9, 20), 58914Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(26, 24), 59530Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z2").WithLocation(17, 17), 59533Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z5").WithLocation(34, 35), 59536Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z6").WithLocation(39, 39) 59592Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(37, 17), 59595Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(38, 19) 60128Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 24), 60131Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(7, 24), 60994Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(15, 27) 61068Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 35), 61496Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(9, 35), 61499Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(14, 35) 61599Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 39), 62992Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 63079Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 67658Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(15, 17) 68659Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "string s1").WithLocation(6, 7), 69917Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a2").WithLocation(11, 19), 69920Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d2").WithLocation(14, 24)); 70003Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a1").WithLocation(9, 20)); 70063Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 20)); 74307Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 74310Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 74316Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6--").WithLocation(37, 9), 74322Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x7--").WithLocation(43, 9) 74403Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 74406Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 74510Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4[0]--").WithLocation(26, 19), 74513Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5[0]").WithLocation(32, 18), 74657Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "++x1").WithLocation(10, 16), 74950Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2 += y2").WithLocation(18, 18), 74959Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3 += y3").WithLocation(24, 9), 74974Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6 += y6").WithLocation(42, 9)); 75496Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(45, 14) 77162Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17), 77206Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17) 77386Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(18, 18), 77392Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 77395Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 77419Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 77422Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 77587Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(10, 20), 77590Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(11, 20), 77725Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 77866Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 79026Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "null as string").WithLocation(15, 22), 79038Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName").WithLocation(19, 23), 79041Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName ?? null").WithLocation(20, 22) 79825Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(8, 39), 80062Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(10, 15), 80094Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 15), 80100Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(10, 22), 80103Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(10, 29), 80109Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 36)); 80148Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(15, 15), 80163Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(15, 29), 80214Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(11, 22), 80220Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(11, 36), 80274Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefReturn()").WithLocation(15, 32)); 81558Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "S1").WithLocation(13, 31), 81564Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F()").WithLocation(14, 31), 81740Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 29), 81746Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 29), 81752Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 29), 81755Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 32), 82020Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 19), 82029Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 82129Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 22), 82132Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 22), 82138Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 22) 82297Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 27), 82332Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 33), 82943Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 82966Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 82989Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 83014Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 89251Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(10, 36), 89254Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c1.F").WithLocation(11, 36), 89260Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(17, 31), 89263Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2.F").WithLocation(18, 31), 89401Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(32, 14), 89404Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3").WithLocation(33, 15), 89410Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(39, 14), 89413Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4").WithLocation(40, 15), 89419Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(47, 15), 89422Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c.F").WithLocation(48, 15), 89428Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(55, 15)); 94754Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 24), 96601Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(17, 22), 96607Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B, S?))t2").WithLocation(24, 18), 96653Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(18, 36), 96659Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((object x, (B, S?) y))t2").WithLocation(25, 18), 96746Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(13, 22), 96752Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B?, A))t2").WithLocation(19, 18), 97311Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 97343Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 97376Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(13, 33)); 97423Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 34), 97429Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(21, 34)); 97670Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(26, 16), 109975Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 39), 109978Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 39), 109984Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)u").WithLocation(8, 59), 109990Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)(object)u").WithLocation(9, 47), 117028Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(19, 18) 119512Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z0").WithLocation(8, 22) 123648Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 123683Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 124986Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 124995Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 125039Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 125048Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 132311Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2").WithLocation(6, 20), 135532Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 135610Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 135660Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 135706Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 19), 147664Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 34), 147667Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 34)); 148857Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P3").WithLocation(21, 13)); 148891Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 18)); 149251Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 12), 149254Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 23)); 149283Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 14), 149286Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(15, 14)); 149737Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 32), 149740Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 37), 149743Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 149746Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14)); 149777Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 30), 149780Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 35), 149783Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 44), 149786Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 35), 149789Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 40), 149792Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 49), 149795Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 149798Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 14), 149801Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(15, 14), 149804Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14), 149807Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(17, 14), 149810Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 14)); 149890Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 149893Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 149896Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 149899Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 149930Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 60), 149972Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 149975Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 149978Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 149981Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 154067Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(13, 16), 160490Diagnostic(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)
342case ErrorCode.WRN_NullReferenceAssignment: