295 references to WRN_UnassignedInternalField
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
258
case ErrorCode.
WRN_UnassignedInternalField
:
596
or ErrorCode.
WRN_UnassignedInternalField
Generated\ErrorFacts.Generated.cs (1)
50
case ErrorCode.
WRN_UnassignedInternalField
:
Symbols\Source\SourceAssemblySymbol.cs (1)
2750
diagnostics.Add(ErrorCode.
WRN_UnassignedInternalField
, field.GetFirstLocationOrNone(), field, DefaultValue(field.Type));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (45)
CodeGen\CodeGenDeconstructTests.cs (1)
8922
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Item1").WithArguments("(T1, T2).Item1", "").WithLocation(12, 19),
CodeGen\CodeGenReadonlyStructTests.cs (1)
2110
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s1").WithArguments("S2.s1", "").WithLocation(9, 8)
CodeGen\UnsafeTests.cs (2)
10930
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "FS").WithArguments("OuterStruct.FS", "").WithLocation(8, 17),
10933
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "ES").WithArguments("OuterStruct.ES", "").WithLocation(7, 17)
CodeGen\WinMdDelegateTests.cs (40)
286
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d002").WithArguments("Test.d002", "null"),
289
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d102").WithArguments("Test.d102", "null"),
292
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d003").WithArguments("Test.d003", "null"),
295
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d008").WithArguments("Test.d008", "null"),
298
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d017").WithArguments("Test.d017", "null"),
301
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d110").WithArguments("Test.d110", "null"),
304
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d009").WithArguments("Test.d009", "null"),
307
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d113").WithArguments("Test.d113", "null"),
310
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d105").WithArguments("Test.d105", "null"),
313
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d119").WithArguments("Test.d119", "null"),
316
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d007").WithArguments("Test.d007", "null"),
319
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d111").WithArguments("Test.d111", "null"),
322
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d103").WithArguments("Test.d103", "null"),
325
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d016").WithArguments("Test.d016", "null"),
328
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d014").WithArguments("Test.d014", "null"),
331
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d104").WithArguments("Test.d104", "null"),
334
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d106").WithArguments("Test.d106", "null"),
337
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d015").WithArguments("Test.d015", "null"),
340
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d004").WithArguments("Test.d004", "null"),
343
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d108").WithArguments("Test.d108", "null"),
346
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d120").WithArguments("Test.d120", "null"),
349
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d101").WithArguments("Test.d101", "null"),
352
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d116").WithArguments("Test.d116", "null"),
355
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d005").WithArguments("Test.d005", "null"),
358
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d117").WithArguments("Test.d117", "null"),
361
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d013").WithArguments("Test.d013", "null"),
364
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d118").WithArguments("Test.d118", "null"),
367
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d020").WithArguments("Test.d020", "null"),
370
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d109").WithArguments("Test.d109", "null"),
373
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d107").WithArguments("Test.d107", "null"),
376
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d115").WithArguments("Test.d115", "null"),
379
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d018").WithArguments("Test.d018", "null"),
382
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d114").WithArguments("Test.d114", "null"),
385
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d006").WithArguments("Test.d006", "null"),
388
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d001").WithArguments("Test.d001", "null"),
391
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d019").WithArguments("Test.d019", "null"),
394
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d011").WithArguments("Test.d011", "null"),
397
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d010").WithArguments("Test.d010", "null"),
400
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d012").WithArguments("Test.d012", "null"),
403
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d112").WithArguments("Test.d112", "null"));
Emit\CompilationEmitTests.cs (1)
178
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("N.X.field", "null").WithLocation(4, 21));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (67)
Attributes\AttributeTests.cs (5)
6515
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "test").WithArguments("F.test", "0")
7896
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Fld6").WithArguments("Gen<T>.Fld6", "").WithLocation(4, 55));
8043
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "PublicField").WithArguments("B.PublicField", "null"),
8049
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "ProtectedField").WithArguments("B.ProtectedField", "null"),
8052
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "InternalField").WithArguments("B.InternalField", "null"));
Attributes\AttributeTests_MarshalAs.cs (1)
1416
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("X.field", "0"));
FieldKeywordTests.cs (8)
4216
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F1").WithArguments("S1.F1", "0").WithLocation(4, 16),
4228
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F2").WithArguments("S2.F2", "0").WithLocation(10, 16),
4238
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F1").WithArguments("S1.F1", "0").WithLocation(4, 16),
4241
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F2").WithArguments("S2.F2", "0").WithLocation(10, 16));
4482
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F3").WithArguments("S3.F3", "0").WithLocation(4, 16),
4488
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F4").WithArguments("S4.F4", "0").WithLocation(10, 16),
4498
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F3").WithArguments("S3.F3", "0").WithLocation(4, 16),
4501
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F4").WithArguments("S4.F4", "0").WithLocation(10, 16));
FlowAnalysis\FlowDiagnosticTests.cs (14)
1029
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("S.x", "0"),
1032
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "y").WithArguments("S.y", "0")
1071
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("S1.x", "0"),
1074
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("S2.x", "0"),
1149
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "y").WithArguments("S.y", "0")
1178
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "y").WithArguments("S.y", "0")
1589
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20)
1639
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20)
1678
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20)
1785
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("Program.S1.x", "0").WithLocation(6, 20)
1807
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("Program.S1.x", "0").WithLocation(6, 20)
2072
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "X").WithArguments("S.X", "0"),
2075
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Y").WithArguments("S.Y", "0")
2151
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Kind").WithArguments("AbstractType.Kind", "0").WithLocation(4, 16));
FlowAnalysis\FlowTests.cs (1)
5932
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "c").WithArguments("C.c", "null").WithLocation(4, 15);
RefReadonlyParameterTests.cs (2)
8688
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "0").WithLocation(9, 23));
8712
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F2").WithArguments("C.F2", "0").WithLocation(10, 23));
RefStructInterfacesTests.cs (4)
2980
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s1").WithArguments("C<TS1, TS2>.s1", tS1IsClass == ThreeState.True ? "null" : "").WithLocation(100, 17)
3042
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s2").WithArguments("S1.s2", "null").WithLocation(11, 16));
3076
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s2").WithArguments("S1<T>.s2", "").WithLocation(11, 15));
3106
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s2").WithArguments("S1<T>.s2", "").WithLocation(11, 15));
Semantics\InlineArrayTests.cs (8)
4682
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(6, 45));
4840
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(8, 45),
4898
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(8, 45),
4954
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(8, 45),
11679
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(4, 26)
11837
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(4, 35)
11863
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(4, 26)
11909
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "").WithLocation(4, 26)
Semantics\OutVarTests.cs (1)
18027
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "val").WithArguments("Cls.var.val", "0").WithLocation(11, 20)
Semantics\PatternMatchingTests3.cs (1)
1401
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "o").WithArguments("C.o", "null").WithLocation(4, 19),
Semantics\PatternMatchingTests5.cs (15)
343
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field1").WithArguments("C.Field1", "null").WithLocation(4, 7),
346
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field2").WithArguments("C.Field2", "null").WithLocation(4, 15),
349
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field3").WithArguments("C.Field3", "null").WithLocation(4, 23),
352
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field4").WithArguments("C.Field4", "null").WithLocation(4, 31)
373
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field1").WithArguments("C.Field1", "null").WithLocation(4, 7),
376
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field2").WithArguments("C.Field2", "null").WithLocation(4, 15),
379
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field3").WithArguments("C.Field3", "null").WithLocation(4, 23),
382
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field4").WithArguments("C.Field4", "null").WithLocation(4, 31)
548
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field1").WithArguments("A.Field1", "").WithLocation(9, 22),
551
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field4").WithArguments("A.Field4", "").WithLocation(9, 40),
554
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field2").WithArguments("B.Field2", "").WithLocation(10, 22),
557
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field3").WithArguments("C.Field3", "null").WithLocation(11, 26)
755
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field3").WithArguments("C.Field3", "null").WithLocation(4, 23),
1101
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Y").WithArguments("P.Y", "null").WithLocation(14, 14)
1284
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Y").WithArguments("S.Y", "null").WithLocation(17, 14)
Semantics\RecordTests.cs (7)
5690
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C1.field", "null").WithLocation(4, 18)
5721
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field4").WithArguments("C1.field4", "null").WithLocation(11, 21),
5724
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field5").WithArguments("C1.field5", "null").WithLocation(12, 22),
5727
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field6").WithArguments("C1.field6", "null").WithLocation(13, 31),
5730
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field7").WithArguments("C1.field7", "null").WithLocation(14, 30)
5784
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Property3").WithArguments("C1.Property3", "0").WithLocation(8, 18)
29452
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "X").WithArguments("A.X", "0").WithLocation(4, 16)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (13)
IOperation\IOperationTests_IDynamicInvocationExpression.cs (1)
250
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "null").WithLocation(6, 14)
IOperation\IOperationTests_IFieldReferenceExpression.cs (3)
365
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("C.i", "0").WithLocation(4, 16)
425
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("C.i", "0").WithLocation(4, 16)
457
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("C.i", "0").WithLocation(4, 9)
IOperation\IOperationTests_IIsPatternExpression.cs (2)
1067
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "null").WithLocation(4, 7)
1135
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "null").WithLocation(4, 7)
IOperation\IOperationTests_InvalidExpression.cs (2)
197
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i1").WithArguments("Program.i1", "0").WithLocation(6, 9)
246
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i1").WithArguments("Program.i1", "0").WithLocation(6, 9)
IOperation\IOperationTests_IObjectCreationExpression.cs (5)
695
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "0").WithLocation(5, 26)
2729
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "0").WithLocation(6, 26)
7351
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "C32").WithArguments("C2.C32", "null").WithLocation(19, 15)
8561
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "C32").WithArguments("C2.C32", "null").WithLocation(21, 15)
9205
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "P2").WithArguments("C1.P2", "null").WithLocation(7, 19)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (110)
Semantics\AccessCheckTests.cs (7)
116
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n1_pro").WithArguments("C.N1.n1_pro", "0"),
122
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n2_pro").WithArguments("C.N1.N2.n2_pro", "0"),
128
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n3_pub").WithArguments("C.N1.N3.n3_pub", "0"),
131
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n4_pub").WithArguments("C.N1.N4.n4_pub", "0"),
327
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n3_pro").WithArguments("C.N3.n3_pro", "0"),
333
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n4_pub").WithArguments("C.N4.n4_pub", "0"),
1402
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "_UnAssignedField1").WithArguments("Class1._UnAssignedField1", "0").WithLocation(4, 19));
Semantics\AccessibilityTests.cs (1)
262
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Goo").WithArguments("RuleE<T>.Z1.Goo", "null"),
Semantics\BindingTests.cs (2)
501
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("N.C<T>.F", "null")
3504
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Val").WithArguments("MyNamespace.AnyClass.AnyEnum.Val", "0").WithLocation(10, 29)
Semantics\ColorColorTests.cs (13)
79
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
200
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
228
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("E.F", "0"),
231
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
262
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
290
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "")
322
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "C").WithArguments("F.C", "null")
351
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
380
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
409
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
442
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
475
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("F.E", "null")
982
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("var<T>.field", "")
Semantics\DeconstructionTests.cs (1)
677
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Deconstruct").WithArguments("C.Deconstruct", "null").WithLocation(6, 15)
Semantics\DynamicTests.cs (1)
1528
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("A.F", "null").WithLocation(6, 27)
Semantics\ForEachTests.cs (2)
491
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Current").WithArguments("Enumerator.Current", "0")
657
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "MoveNext").WithArguments("Enumerator.MoveNext", "false")
Semantics\InheritanceBindingTests.cs (5)
1431
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("Base.field", "0"),
1496
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("Base.field", "0")
1555
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("Base.field", "0")
4334
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "0"),
4340
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("S.field", "0"),
Semantics\LambdaTests.cs (2)
1148
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "integrationService").WithArguments("TestDataPointBase.integrationService", "null").WithLocation(6, 54)
4756
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "null").WithLocation(4, 13),
Semantics\LockTests.cs (1)
225
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("Program.x", "0"));
Semantics\NullableReferenceTypesTests.cs (8)
82828
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("S.F", "null").WithLocation(13, 17)
89838
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "flag").WithArguments("C.flag", "false").WithLocation(20, 17));
97590
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "E").WithArguments("C.E", "").WithLocation(5, 10));
114839
#pragma warning disable {(int)ErrorCode.
WRN_UnassignedInternalField
}
134622
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("S.F", "null").WithLocation(3, 21),
156130
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "null").WithLocation(5, 20),
156161
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "null").WithLocation(5, 27),
160789
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Item").WithArguments("D<T>.Item", "").WithLocation(15, 14)
Semantics\NullConditionalAssignmentTests.cs (4)
512
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "0").WithLocation(5, 9),
956
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("S.F", "0").WithLocation(4, 16),
2288
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "0").WithLocation(5, 9),
2714
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "0").WithLocation(3, 9),
Semantics\ObjectAndCollectionInitializerTests.cs (6)
941
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Add").WithArguments("A.Add", "null").WithLocation(8, 27)
1179
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("MemberInitializerTest.x", "0").WithLocation(4, 19)
1394
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("MemberInitializerTest.x", "0").WithLocation(4, 25)
2541
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "_list").WithArguments("MyList<T>._list", "null").WithLocation(5, 13)
3099
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("N.Struct.x", "0").WithLocation(4, 32),
3102
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("N.Class.x", "0").WithLocation(5, 30)
Semantics\OperatorTests.cs (1)
5465
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("Program.C.x", "0")
Semantics\QueryTests.cs (1)
3003
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Flavor").WithArguments("Program.Flavor", "null")
Semantics\RecordStructTests.cs (1)
787
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("S.field", "null").WithLocation(5, 31),
Semantics\RefEscapingTests.cs (1)
4351
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field2").WithArguments("Program.S3.Field2", "").WithLocation(67, 19));
Semantics\RefFieldTests.cs (5)
5759
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("R.F", "0").WithLocation(3, 16));
5805
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("R.F", "0").WithLocation(3, 16));
10315
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("StructWithIndirectRefField.Field", "").WithLocation(10, 36),
26821
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s2").WithArguments("S1.s2", "").WithLocation(11, 16));
26963
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s2").WithArguments("S1.s2", "").WithLocation(11, 16));
Semantics\SemanticAnalyzerTests.cs (3)
119
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("N.D.x", "0").WithLocation(2, 43));
828
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "z").WithArguments("C.S.z", "0").WithLocation(4, 35));
854
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "instanceField").WithArguments("C.instanceField", "0").WithLocation(4, 9));
Semantics\SemanticErrorTests.cs (32)
1312
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "P").WithArguments("A.P", "null")
2575
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("A.F", "null")
3031
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "instanceField").WithArguments("C.instanceField", "0").WithLocation(8, 9),
3034
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "staticField").WithArguments("C.staticField", "0").WithLocation(9, 16));
3151
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "null"),
3154
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field2").WithArguments("C.D.field2", "null"));
3960
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("Test.x", "0").WithLocation(6, 16)
5086
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "0")
6473
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("MyStruct.i", "0").WithLocation(8, 15)
6483
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "i").WithArguments("MyStruct.i", "0")
6791
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("A.F", "null").WithLocation(3, 28));
6837
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "D").WithArguments("Test.D", "null")
6986
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "a").WithArguments("MyNamespace.MyClass.S.a", "0").WithLocation(8, 24));
6992
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "a").WithArguments("MyNamespace.MyClass.S.a", "0"));
8247
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("Point.x", "0"),
8250
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "y").WithArguments("Point.y", "0"));
8703
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "instanceArray").WithArguments("MyClass.instanceArray", "null").WithLocation(4, 11),
8706
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "staticArray").WithArguments("MyClass.staticArray", "null").WithLocation(5, 18),
14348
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "P").WithArguments("A.P", "null")
14690
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("A.F", "null")
19368
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "EffectivelyPrivate").WithArguments("InternalClass.PrivateClass.EffectivelyPrivate", "0")
19395
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "ActuallyInternal").WithArguments("InternalClass.ActuallyInternal", "0"),
19404
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "EffectivelyInternal").WithArguments("InternalClass.EffectivelyInternal", "0"),
19407
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "EffectivelyPrivate").WithArguments("InternalClass.PrivateClass.EffectivelyPrivate", "0")
20075
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "GetEnumerator").WithArguments("Derived.GetEnumerator", "0")
21248
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "table").WithArguments("MyClass.table", "null")
21268
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Fld").WithArguments("Outer.Test.Fld", "null"));
22153
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("S.Field", "0"),
22193
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s").WithArguments("S.WarningCS1690.s", "null"),
22196
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("S.Field", "0"),
23092
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "d3").WithArguments("CSSample.Program.d3", "null").WithLocation(17, 19));
23504
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "f").WithArguments("Program.f", "0").WithLocation(4, 9)
Semantics\StructConstructorTests.cs (2)
3083
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("S0.F", "0").WithLocation(4, 16));
3944
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("R.field", "").WithLocation(7, 17)
Semantics\UninitializedNonNullableFieldTests.cs (4)
91
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "null").WithLocation(3, 21),
114
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "null").WithLocation(4, 21),
136
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "null").WithLocation(3, 21),
243
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F1").WithArguments("C<T>.F1", "").WithLocation(3, 16),
Semantics\UnsafeTests.cs (7)
6549
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "array").WithArguments("C.array", "null").WithLocation(6, 11)
7303
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "o").WithArguments("S.o", "null"));
9656
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n").WithArguments("C.n", "null"));
9690
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n").WithArguments("C.n", "null"));
9738
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "n").WithArguments("C.n", "null").WithLocation(5, 23)
9807
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "a").WithArguments("Program.a", "null"));
9862
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "a").WithArguments("C.a", "null"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (51)
BadSymbolReference.cs (4)
357
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "f1").WithArguments("Module1.f1", "null").WithLocation(5, 20)
556
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "f1").WithArguments("Module1.f1", "null").WithLocation(5, 20)
642
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "f1").WithArguments("Module1.f1", "null").WithLocation(5, 20)
723
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "f1").WithArguments("Module1.f1", "null").WithLocation(5, 20)
DocumentationComments\CrefTests.cs (2)
1936
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("Base.F", "0"));
1971
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("Base.F", "0"));
Symbols\AnonymousTypesSemanticsTests.cs (4)
1705
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "ProductName").WithArguments("Product.ProductName", "null").WithLocation(7, 19),
1708
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "SupplierID").WithArguments("Product.SupplierID", "0").WithLocation(8, 16),
1711
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "ProductID").WithArguments("Product.ProductID", "0").WithLocation(6, 16),
1714
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Products").WithArguments("DB.Products", "null").WithLocation(12, 32)
Symbols\GenericConstraintConversionTests.cs (1)
796
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "w").WithArguments("C<T, U, V, W>.w", "")
Symbols\GenericConstraintTests.cs (6)
2228
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("A.F", "null"),
2231
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "G").WithArguments("B.G", "null"),
2234
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "H").WithArguments("C.H", "null")
2309
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("S.F", "null"),
2312
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F").WithArguments("C.F", "null")
6452
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "eNullableArr").WithArguments("S.eNullableArr", "null").WithLocation(4, 10));
Symbols\RequiredMembersTests.cs (7)
185
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("I1.Field", "0").WithLocation(21, 18),
267
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("C.Field", "0").WithLocation(4, 36),
479
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("C.Field", "0").WithLocation(5, 25)
692
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("Outer.Inner.Field", "0").WithLocation(7, 29)
1276
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field").WithArguments("C.Field", "0").WithLocation(9, 16)
7109
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Test").WithArguments("C.Test", "0").WithLocation(4, 25)
7127
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Test").WithArguments("C.Test", "0").WithLocation(3, 25),
Symbols\Source\ClsComplianceTests.cs (1)
248
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "F2").WithArguments("Levels.F2", "0"),
Symbols\Source\FieldTests.cs (2)
324
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Finalize").WithArguments("A.Finalize", "").WithLocation(5, 28)
392
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Finalize").WithArguments("A.Finalize", "").WithLocation(5, 28)
Symbols\Source\FileModifierTests.cs (1)
2900
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "X").WithArguments("S.X", "0").WithLocation(1, 28),
Symbols\Source\NullablePublicAPITests.cs (4)
1620
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s_data").WithArguments("C.s_data", "null").WithLocation(6, 27));
1660
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s_data").WithArguments("C.s_data", "null").WithLocation(6, 27),
1703
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "s_data").WithArguments("C.s_data", "null").WithLocation(6, 27),
2777
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "GetT").WithArguments("C<T>.GetT", "").WithLocation(4, 14));
Symbols\SymbolErrorTests.cs (17)
122
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "b").WithArguments("Test.b", "null")
153
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "var").WithArguments("NS.Test.var", "null")
4638
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("NS.Test<T>.field", "null")
9023
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "xz").WithArguments("Y.xz", "").WithLocation(9, 17),
9026
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "xy").WithArguments("Z.xy", "").WithLocation(14, 17),
9029
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "t").WithArguments("X<T>.t", "").WithLocation(5, 14),
9032
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "xe").WithArguments("Z.xe", "").WithLocation(13, 17)
9056
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "t").WithArguments("X<T>.t", ""),
9516
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "goo").WithArguments("NS.A3.goo", "null").WithLocation(31, 32));
12148
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("NS.S1<T, V>.field", ""),
12396
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Field2").WithArguments("NS.Goo.SGoo.Field2", "")
12569
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("NS.Goo<T>.field", ""),
12572
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("NS.Goo<T>.SGoo.field", "null")
15742
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "ABC").WithArguments("goo.ABC", "0"));
19503
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "MyMeth").WithArguments("NS.MyType.MyMeth", "0")
19913
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Item").WithArguments("A2.Item", "null"),
19916
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "Item").WithArguments("B1.Item", "null")
Symbols\UserDefinedOperatorErrorTests.cs (2)
134
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "op_Subtraction").WithArguments("C.op_Subtraction", "0"),
137
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "op_Division").WithArguments("C.op_Division", "0")
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Diagnostics\DiagnosticTest.cs (1)
2950
case ErrorCode.
WRN_UnassignedInternalField
:
Parsing\ParserErrorMessageTests.cs (3)
750
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "m").WithArguments("MyClass.m", "null").WithLocation(15, 23),
771
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "e").WithArguments("MyClass.e", "null").WithLocation(18, 19)
1734
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "x").WithArguments("C.x", "0").WithLocation(4, 23));
Syntax\FieldAndValueKeywordTests.cs (1)
1481
Diagnostic(ErrorCode.
WRN_UnassignedInternalField
, "field").WithArguments("C.field", "0").WithLocation(3, 16));