293 references to WRN_NullReferenceAssignment
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (3)
28nullableWarnings.Add(GetId(ErrorCode.WRN_NullReferenceAssignment)); 431case ErrorCode.WRN_NullReferenceAssignment: 1945or ErrorCode.WRN_NullReferenceAssignment
FlowAnalysis\NullableWalker.cs (1)
2449ReportDiagnostic(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)
7130Diagnostic(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 (42)
FieldKeywordTests.cs (21)
5758Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(4, 27), 5761Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(5, 36), 5764Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(6, 42), 5767Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(7, 33), 5770Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "MaybeNull()").WithLocation(8, 51), 6295Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24), 6419Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24), 6451Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24), 6774Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(10, 24)); 7262Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(9, 24), 7265Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 9), 7268Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(18, 24), 7271Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(19, 9), 7274Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(27, 24), 7317Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(8, 24), 7385Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(15, 9), 7388Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "value").WithLocation(34, 24), 7391Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(35, 9), 7394Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(47, 14), 7397Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(49, 14) 11835Diagnostic(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)); 14143Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(5, 21)); 14188Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "m() ? a1 : a2").WithLocation(6, 22)); 32610Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "element1").WithLocation(4, 36), 37996Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(11, 21)); 43160Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 25), 43163Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(14, 16)); 43187Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(8, 37)); 43262Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(14, 14), 43265Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F(x)").WithLocation(14, 19),
Semantics\ExtensionOperatorsTests.cs (2)
8909Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x").WithLocation(23, 16), 8916Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--z").WithLocation(25, 9)
Semantics\ExtensionTests.cs (2)
42382Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "oNull").WithLocation(4, 31)); 42474Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "oNull").WithLocation(4, 31));
Semantics\PrimaryConstructorTests.cs (2)
20523Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p1").WithLocation(6, 17) 20557Diagnostic(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) 18610Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y26").WithLocation(268, 18), 18613Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y27").WithLocation(274, 20), 18755Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(48, 16), 19488Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y5").WithLocation(34, 17)); 19605Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 22), 32916Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F1").WithLocation(12, 19), 32919Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F3").WithLocation(44, 19)); 32987Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(12, 18), 32996Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F").WithLocation(44, 18)); 33890Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr1 *= mc").WithLocation(18, 9), 33896Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "mr2 *= mcn").WithLocation(20, 9), 33914Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "dr2 /= dcn").WithLocation(44, 9), 34863Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(6, 15) 35444Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(15, 16) 35475Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(10, 15), 35478Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefString()").WithLocation(12, 15) 35502Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(7, 15) 35563Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "field").WithLocation(11, 15), 35740Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "f2", isSuppressed: false).WithLocation(18, 16) 35831Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(15, 15), 35834Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "maybeNull").WithLocation(25, 28) 36036Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(17, 25), 39722Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(22, 13), 42906Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 13) 44491Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s3").WithLocation(17, 16), 44494Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s4").WithLocation(21, 16), 44576Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44579Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44582Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44585Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44588Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44591Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44612Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44615Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44618Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44621Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44624Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44627Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44842Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 44845Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 44848Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 30), 44851Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 44854Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 44857Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 30), 44866Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t7").WithLocation(47, 30), 44872Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t8").WithLocation(51, 30) 45092Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "Property += c").WithLocation(10, 9), 45316Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(28, 29), 45319Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(29, 30), 45322Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(30, 30), 45325Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(34, 29), 45328Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(35, 30), 45331Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(36, 30), 45479Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(14, 29), 45482Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(15, 30), 45485Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(16, 31), 45488Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(20, 29), 45491Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(21, 30), 45494Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t3").WithLocation(22, 31), 47185Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16), 47730Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 14), 48298Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(9, 16), 48301Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t2").WithLocation(13, 16) 55156Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(6, 33), 55162Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 34), 55168Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(12, 33), 55174Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(15, 34)); 57138Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref x : ref y").WithLocation(4, 63), 57144Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b ? ref x : ref y!").WithLocation(6, 63), 58907Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(9, 20), 58913Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "o").WithLocation(26, 24), 59529Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z2").WithLocation(17, 17), 59532Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z5").WithLocation(34, 35), 59535Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z6").WithLocation(39, 39) 59591Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(37, 17), 59594Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z4").WithLocation(38, 19) 60127Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 24), 60130Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(7, 24), 60993Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(15, 27) 61067Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(5, 35), 61495Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(9, 35), 61498Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(14, 35) 61598Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(9, 39), 62991Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 63078Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 14), 67657Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(15, 17) 68635Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "string s1").WithLocation(6, 7), 69893Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a2").WithLocation(11, 19), 69896Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d2").WithLocation(14, 24)); 69979Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a1").WithLocation(9, 20)); 70039Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 20)); 74283Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 74286Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 74292Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6--").WithLocation(37, 9), 74298Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x7--").WithLocation(43, 9) 74379Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4--").WithLocation(26, 19), 74382Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5").WithLocation(32, 18), 74486Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4[0]--").WithLocation(26, 19), 74489Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "--x5[0]").WithLocation(32, 18), 74633Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "++x1").WithLocation(10, 16), 74926Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2 += y2").WithLocation(18, 18), 74935Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3 += y3").WithLocation(24, 9), 74950Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6 += y6").WithLocation(42, 9)); 75472Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x6").WithLocation(45, 14) 77138Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17), 77182Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(10, 17) 77362Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(18, 18), 77368Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 77371Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 77395Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(13, 20), 77398Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(14, 20), 77563Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(10, 20), 77566Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x21").WithLocation(11, 20), 77701Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 77842Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x11").WithLocation(15, 18), 79004Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "null as string").WithLocation(15, 22), 79016Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName").WithLocation(19, 23), 79019Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "p.MiddleName ?? null").WithLocation(20, 22) 79803Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(8, 39), 80040Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(10, 15), 80072Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(10, 15), 80078Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(10, 22), 80081Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(10, 29), 80087Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(10, 36)); 80126Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "b").WithLocation(15, 15), 80141Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "d").WithLocation(15, 29), 80192Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c").WithLocation(11, 22), 80198Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "a").WithLocation(11, 36), 80252Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "RefReturn()").WithLocation(15, 32)); 81536Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "S1").WithLocation(13, 31), 81542Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "F()").WithLocation(14, 31), 81718Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 29), 81724Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 29), 81730Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 29), 81733Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 32), 81998Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 19), 82007Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 82107Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 22), 82110Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 22), 82116Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(11, 22) 82275Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(2, 27), 82310Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 33), 82921Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 82944Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 82967Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 82992Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P").WithLocation(6, 13), 89229Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(10, 36), 89232Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c1.F").WithLocation(11, 36), 89238Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(17, 31), 89241Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2.F").WithLocation(18, 31), 89379Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(32, 14), 89382Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x3").WithLocation(33, 15), 89388Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(39, 14), 89391Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x4").WithLocation(40, 15), 89397Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(47, 15), 89400Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c.F").WithLocation(48, 15), 89406Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(55, 15)); 94732Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 24), 96579Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(17, 22), 96585Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B, S?))t2").WithLocation(24, 18), 96631Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(18, 36), 96637Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((object x, (B, S?) y))t2").WithLocation(25, 18), 96724Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t1").WithLocation(13, 22), 96730Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "((B?, A))t2").WithLocation(19, 18), 97289Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 97321Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(10, 33)); 97354Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(13, 33)); 97401Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x1").WithLocation(12, 34), 97407Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x2").WithLocation(21, 34)); 97648Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(26, 16), 109953Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(4, 39), 109956Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 39), 109962Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)u").WithLocation(8, 59), 109968Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "(T)(object)u").WithLocation(9, 47), 117006Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y1").WithLocation(19, 18) 119490Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "z0").WithLocation(8, 22) 123626Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 123661Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 16), 124964Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 124973Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 125017Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "s").WithLocation(11, 40), 125026Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 35), 132292Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "c2").WithLocation(6, 20), 135513Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 135591Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(13, 19), 135641Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 19), 135687Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 19), 147611Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default(T)").WithLocation(5, 34), 147614Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 34)); 148804Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "P3").WithLocation(21, 13)); 148838Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 18)); 149198Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 12), 149201Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 23)); 149230Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(13, 14), 149233Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y").WithLocation(15, 14)); 149684Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 32), 149687Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 37), 149690Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 149693Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14)); 149724Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(5, 30), 149727Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(6, 35), 149730Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(7, 44), 149733Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(8, 35), 149736Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(9, 40), 149739Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "default").WithLocation(10, 49), 149742Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(13, 14), 149745Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(14, 14), 149748Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(15, 14), 149751Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(16, 14), 149754Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(17, 14), 149757Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "t").WithLocation(18, 14)); 149837Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 149840Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 149843Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 149846Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 149877Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 60), 149919Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(5, 71), 149922Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(6, 71), 149925Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(7, 71), 149928Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "x").WithLocation(9, 71), 154014Diagnostic(ErrorCode.WRN_NullReferenceAssignment, "y2").WithLocation(13, 16), 160437Diagnostic(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: