299 references to WRN_NewRequired
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
289
case ErrorCode.
WRN_NewRequired
:
704
or ErrorCode.
WRN_NewRequired
Generated\ErrorFacts.Generated.cs (1)
13
case ErrorCode.
WRN_NewRequired
:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
717
diagnostics.Add(ErrorCode.
WRN_NewRequired
, symbolLocation, symbol, hiddenMember);
1630
diagnostics.Add(ErrorCode.
WRN_NewRequired
, hidingMemberLocation, hidingMember, hiddenMembers[0]);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (20)
CodeGen\CodeGenImplicitImplementationTests.cs (2)
2087
Diagnostic(ErrorCode.
WRN_NewRequired
, "M8").WithArguments("Test.M8(params long[])", "Base.M8(long[])"),
2089
Diagnostic(ErrorCode.
WRN_NewRequired
, "M9").WithArguments("Test.M9(long[])", "Base.M9(params long[])"));
CodeGen\CodeGenInterfaceImplementation.cs (4)
2273
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method").WithArguments("I3<W>.Method<Z>(W, System.Func<W, Z>)", "I1<W>.Method<V>(W, System.Func<W, V>)"),
2275
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("I3<W>.Property", "I1<W>.Property"),
2277
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("Base2.Property", "Base.Property"));
2491
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method").WithArguments("ImplicitInBase.Method(int, System.Func<int, int>, params int[])", "Base.Method(int, System.Func<int, int>, int[])"));
CodeGen\CodeGenOverridingAndHiding.cs (6)
1738
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method").WithArguments("Base.Derived.Method()", "Base.Method()").WithLocation(12, 21),
1741
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field").WithArguments("Base2.Derived2.Field", "Base2.Field").WithLocation(62, 13),
1744
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field2").WithArguments("Base2.Derived2.Field2", "Base2.Field2").WithLocation(63, 20),
1747
Diagnostic(ErrorCode.
WRN_NewRequired
, "Type2").WithArguments("Base2.Derived2.Type2<T>", "Base2.Type2<T>").WithLocation(74, 22),
1753
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field2").WithArguments("Derived3.Field2", "Base3.Field2").WithLocation(101, 26),
1932
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method2").WithArguments("Derived<U>.Method2", "Base<U>.Method2()"));
CodeGen\CodeGenTupleTest.cs (6)
20278
Diagnostic(ErrorCode.
WRN_NewRequired
, "MR2").WithArguments("I1.MR2()", "I0.MR2()").WithLocation(10, 26),
20281
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("I1.M2((int notA, int notB))", "I0.M2((int a, int b))").WithLocation(9, 10)
20312
Diagnostic(ErrorCode.
WRN_NewRequired
, "M6").WithArguments("I1.M6()", "I0.M6()").WithLocation(18, 20),
20315
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("I1.M2((int a, int b))", "I0.M2((int a, int b))").WithLocation(14, 10),
20318
Diagnostic(ErrorCode.
WRN_NewRequired
, "M5").WithArguments("I1.M5()", "I0.M5()").WithLocation(17, 26),
20321
Diagnostic(ErrorCode.
WRN_NewRequired
, "M1").WithArguments("I1.M1((int notA, int notB))", "I0.M1((int a, int b))").WithLocation(13, 10)
Emit\EntryPointTests.cs (1)
1340
Diagnostic(ErrorCode.
WRN_NewRequired
, "Main").WithArguments("Derived.Main()", "BaseClass.Main()"),
Emit\InAttributeModifierTests.cs (1)
4522
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("Child.M(in int)", "Parent.M(in int)").WithLocation(12, 17));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
989
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B2.F1(nint)", "A.F1(nint)").WithLocation(8, 17),
992
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B2.F2(nuint)", "A.F2(nuint)").WithLocation(9, 17),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (34)
RefReadonlyParameterTests.cs (4)
6126
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("C.M(ref readonly int)", "B.M(ref readonly int)").WithLocation(7, 17),
6195
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("C.M(ref readonly int)", "B.M(in int)").WithLocation(7, 17),
6286
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("C.this[ref readonly int]", "B.this[in int]").WithLocation(15, 16),
6383
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("C.M(in int)", "B.M(ref readonly int)").WithLocation(7, 17),
Semantics\RecordTests.cs (20)
10233
Diagnostic(ErrorCode.
WRN_NewRequired
, "X").WithArguments("B.X", "A.X").WithLocation(8, 19),
10236
Diagnostic(ErrorCode.
WRN_NewRequired
, "Y").WithArguments("B.Y", "A.Y").WithLocation(9, 19));
10270
Diagnostic(ErrorCode.
WRN_NewRequired
, "X").WithArguments("B.X", "A.X").WithLocation(7, 19),
10273
Diagnostic(ErrorCode.
WRN_NewRequired
, "Y").WithArguments("B.Y", "A.Y").WithLocation(8, 19));
29277
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29302
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29327
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 22)
29477
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(12, 16)
29515
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(12, 16)
29587
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 23)
29597
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 23)
29618
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 23)
29747
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29779
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29837
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I<T>()", "Base.I").WithLocation(13, 17)
29865
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "GrandBase.I").WithLocation(12, 17)
29967
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 18)
29993
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 32),
30022
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 25)
30043
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("Derived.I()", "Base.I").WithLocation(8, 16),
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (10)
2318
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator " + op + @"()", "C1.operator " + op + @"()").WithLocation(10, 25),
2321
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator checked " + op + @"()", "C1.operator checked " + op + @"()").WithLocation(11, 33)
2372
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator " + op + @"()", "C1.operator " + op + @"()").WithLocation(10, 25),
2375
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator checked " + op + @"()", "C1.operator checked " + op + @"()").WithLocation(11, 33)
10805
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(10, 25),
10808
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator checked " + op + @"(int)", "C1.operator checked " + op + @"(int)").WithLocation(11, 33)
10857
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(10, 25)
10906
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(10, 25),
10909
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator checked " + op + @"(int)", "C1.operator checked " + op + @"(int)").WithLocation(11, 33)
10958
Diagnostic(ErrorCode.
WRN_NewRequired
, op).WithArguments("C2.operator " + op + @"(int)", "C1.operator " + op + @"(int)").WithLocation(10, 25)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (54)
Semantics\DynamicTests.cs (4)
288
Diagnostic(ErrorCode.
WRN_NewRequired
, "G").WithArguments("B.G(object)", "A.G(dynamic)"),
290
Diagnostic(ErrorCode.
WRN_NewRequired
, "H").WithArguments("B.H(dynamic[])", "A.H(params object[])"),
292
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("B.I(ref object)", "A.I(ref dynamic)"),
294
Diagnostic(ErrorCode.
WRN_NewRequired
, "F").WithArguments("B.F(int)", "A.F(int)"));
Semantics\InheritanceBindingTests.cs (16)
4169
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method1").WithArguments("IDerived.Method1()", "IBase.Method1()"),
4172
Diagnostic(ErrorCode.
WRN_NewRequired
, "field").WithArguments("Derived.field", "Base.field"),
4175
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("Derived.Property", "Base.Property"),
4178
Diagnostic(ErrorCode.
WRN_NewRequired
, "Interface").WithArguments("Derived.Interface", "Base.Interface"),
4181
Diagnostic(ErrorCode.
WRN_NewRequired
, "Class").WithArguments("Derived.Class", "Base.Class"),
4184
Diagnostic(ErrorCode.
WRN_NewRequired
, "Struct").WithArguments("Derived.Struct", "Base.Struct"),
4187
Diagnostic(ErrorCode.
WRN_NewRequired
, "Enum").WithArguments("Derived.Enum", "Base.Enum"),
4190
Diagnostic(ErrorCode.
WRN_NewRequired
, "Delegate").WithArguments("Derived.Delegate", "Base.Delegate"),
4193
Diagnostic(ErrorCode.
WRN_NewRequired
, "Event").WithArguments("Derived.Event", "Base.Event"),
4196
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("Derived.this[int]", "Base.this[int]"),
6382
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method").WithArguments("NS3.Base2.Method<T>", "NS3.Base<System.Collections.Generic.List<int>>.Method<U>(System.Collections.Generic.List<int>)"),
6464
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method").WithArguments("NS1.Base2.Method<T>", "NS1.Base<System.Collections.Generic.List<int>>.Method<U>(System.Collections.Generic.List<int>)"),
6547
Diagnostic(ErrorCode.
WRN_NewRequired
, "Type").WithArguments("Derived.Base2.Type", "Base.Type"),
6550
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field").WithArguments("Derived.Base2.Field", "Base.Field"),
6553
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("Derived.Base2.Property", "Base.Property")
8015
Diagnostic(ErrorCode.
WRN_NewRequired
, "Method").WithArguments("ImplicitInBase.Method(int, System.Func<int, int>, params int[])", "Base.Method(int, System.Func<int, int>, int[])"),
Semantics\InitOnlyMemberTests.cs (7)
2090
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("Derived.Property", "Base.Property").WithLocation(8, 19)
2291
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithoutInit.Property", "I1.Property").WithLocation(12, 12),
2294
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInit.Property", "I1.Property").WithLocation(16, 12),
2297
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInitWithDefaultImplementation.Property", "I1.Property").WithLocation(24, 12)
2384
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithoutInit.Property", "I1.Property").WithLocation(13, 12),
2387
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInit.Property", "I1.Property").WithLocation(17, 12),
2390
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInitWithImplementation.Property", "I1.Property").WithLocation(31, 12),
Semantics\NativeIntegerTests.cs (10)
3246
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B2.F1(nint)", "A.F1(System.IntPtr)").WithLocation(8, 17),
3249
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B2.F2(System.UIntPtr)", "A.F2(nuint)").WithLocation(9, 17),
3313
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B1.F1(nint)", "A.F1(System.IntPtr)").WithLocation(3, 17),
3316
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B1.F2(nuint)", "A.F2(System.UIntPtr)").WithLocation(4, 17),
3319
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B3.F1(nint)", "A.F1(System.IntPtr)").WithLocation(13, 17),
3322
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B3.F2(nuint)", "A.F2(System.UIntPtr)").WithLocation(14, 17)
3372
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B2.F1(System.IntPtr)", "A.F1(nint)").WithLocation(8, 17),
3375
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B2.F2(System.UIntPtr)", "A.F2(nuint)").WithLocation(9, 17),
3378
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B4.F1(System.IntPtr)", "A.F1(nint)").WithLocation(18, 17),
3381
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B4.F2(System.UIntPtr)", "A.F2(nuint)").WithLocation(19, 17)
Semantics\OperatorTests.cs (2)
6617
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_Addition").WithArguments("Derived4.op_Addition(Base4, Derived4)", "Base4.op_Addition(Base4, Derived4)"));
6691
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_Explicit").WithArguments("Derived4.op_Explicit(Base4)", "Base4.op_Explicit(Base4)"));
Semantics\RefFieldTests.cs (5)
17319
Diagnostic(ErrorCode.
WRN_NewRequired
, "M1").WithArguments("B2.M1(scoped R<string>)", "A<string>.M1(R<string>)").WithLocation(11, 17),
17322
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("B2.M2(R<string>)", "A<string>.M2(scoped R<string>)").WithLocation(12, 17),
17325
Diagnostic(ErrorCode.
WRN_NewRequired
, "M3").WithArguments("B2.M3(scoped ref R<string>)", "A<string>.M3(ref R<string>)").WithLocation(13, 17),
17328
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("B2.this[scoped R<string>]", "A<string>.this[R<string>]").WithLocation(14, 19),
17331
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("B2.this[int, R<string>]", "A<string>.this[int, scoped R<string>]").WithLocation(15, 19));
Semantics\SemanticAnalyzerTests.cs (8)
594
Diagnostic(ErrorCode.
WRN_NewRequired
, "Q").WithArguments("B.Q", "A.Q()").WithLocation(18, 16),
597
Diagnostic(ErrorCode.
WRN_NewRequired
, "R").WithArguments("B.R", "A.R()").WithLocation(19, 23),
600
Diagnostic(ErrorCode.
WRN_NewRequired
, "S").WithArguments("B.S", "A.S()").WithLocation(20, 16),
603
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("B.T()", "A.T").WithLocation(21, 24),
606
Diagnostic(ErrorCode.
WRN_NewRequired
, "U").WithArguments("B.U()", "A.U").WithLocation(22, 17),
609
Diagnostic(ErrorCode.
WRN_NewRequired
, "V").WithArguments("B.V()", "A.V").WithLocation(23, 24),
612
Diagnostic(ErrorCode.
WRN_NewRequired
, "W").WithArguments("B.W()", "A.W").WithLocation(24, 17),
615
Diagnostic(ErrorCode.
WRN_NewRequired
, "P").WithArguments("B.P", "A.P()").WithLocation(17, 23),
Semantics\SemanticErrorTests.cs (2)
14123
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 8, Column = 16, IsWarning = true },
14124
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 12, Column = 22, IsWarning = true },
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (184)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (2)
690
Diagnostic(ErrorCode.
WRN_NewRequired
, "P").WithArguments("I3.P", "I1.P"),
692
Diagnostic(ErrorCode.
WRN_NewRequired
, "P").WithArguments("I4.P", "I3.P"));
Symbols\CovariantReturnTests.cs (4)
1748
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("Derived2.M2", "Derived.M2").WithLocation(15, 19),
1751
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("Derived3.M2", "Derived.M2").WithLocation(20, 19)
1760
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("Derived2.M2", "Derived.M2").WithLocation(15, 19),
1763
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("Derived3.M2", "Derived.M2").WithLocation(20, 19)
Symbols\DefaultInterfaceImplementationTests.cs (19)
36865
Diagnostic(ErrorCode.
WRN_NewRequired
, "M1").WithArguments("I2.M1()", "I1.M1()").WithLocation(10, 25 + implModifiers.Length),
65572
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(10, 15),
65575
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(23, 22)
65656
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2()").WithLocation(9, 15),
65659
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4()").WithLocation(22, 22)
65739
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2()", "I1.I2").WithLocation(11, 10),
65742
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4()", "C1.I4").WithLocation(23, 17)
65818
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(9, 16),
65821
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(19, 23)
65894
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2()").WithLocation(9, 16),
65897
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4()").WithLocation(20, 23)
65971
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2()", "I1.I2").WithLocation(9, 10),
65974
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4()", "C1.I4").WithLocation(19, 17)
66143
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1<int>.I2").WithLocation(13, 15),
66146
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1<int>.I4").WithLocation(29, 22)
66188
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(9, 15),
66191
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(21, 22)
66269
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(10, 16),
66272
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(21, 23)
Symbols\ExtendedPartialMethodsTests.cs (1)
1539
Diagnostic(ErrorCode.
WRN_NewRequired
, "M1").WithArguments("D.M1()", "C.M1()").WithLocation(9, 27),
Symbols\IndexedPropertyTests.cs (2)
1876
Diagnostic(ErrorCode.
WRN_NewRequired
, "get_P").WithArguments("B2.get_P(int)", "A1.get_P(int)").WithLocation(13, 21),
1878
Diagnostic(ErrorCode.
WRN_NewRequired
, "set_P").WithArguments("B2.set_P(int, object)", "A1.set_P(int, object)").WithLocation(14, 19),
Symbols\IndexerTests.cs (2)
610
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("Derived.this[int]", "Base.this[int]"));
735
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("Derived.this[int]", "Base.this[int]"));
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (41)
91
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M()", "ITop.M()"),
94
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IRight.M()", "ITop.M()"),
97
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
132
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M()", "ITop.M()"),
135
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
170
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ITop.M()"));
206
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
241
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
295
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M()", "ITop.M()"),
298
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
333
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ITop.M()"));
369
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
405
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"),
408
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IRight.M(int)", "ITop.M(int)"));
462
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M()", "ITop.M()"),
465
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
500
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ITop.M()"));
536
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
572
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"),
575
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IRight.M<T>()", "ITop.M<T>()"));
629
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M()", "ITop.M()"),
632
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"),
635
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IRight.M", "ITop.M()"));
670
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M"),
673
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M", "ITop.M()"),
676
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IRight.M", "ITop.M()"));
712
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IRight.M()", "ITop.M"),
715
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M()", "ITop.M"),
718
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"));
754
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IRight.M", "ITop.M"),
757
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("IBottom.M()", "ILeft.M()"),
760
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("ILeft.M()", "ITop.M"));
792
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("Derived2.M", "Base.M"),
795
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("Derived1.M()", "Base.M()"));
844
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M(in int)", "A.M(in int)").WithLocation(8, 10));
873
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M()", "A.M()").WithLocation(8, 22));
902
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M()", "A.M()").WithLocation(8, 22));
931
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M()", "A.M()").WithLocation(8, 13));
960
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("B.Property", "A.Property").WithLocation(8, 22));
989
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("B.Property", "A.Property").WithLocation(8, 13));
1018
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("B.Property", "A.Property").WithLocation(8, 22));
Symbols\OverriddenOrHiddenMembersTests.cs (19)
2134
Diagnostic(ErrorCode.
WRN_NewRequired
, "A").WithArguments("Derived.A<T>()", "Base.A"),
2135
Diagnostic(ErrorCode.
WRN_NewRequired
, "B").WithArguments("Derived.B<T>()", "Base.B"),
2136
Diagnostic(ErrorCode.
WRN_NewRequired
, "C").WithArguments("Derived.C<T>()", "Base.C"),
2162
Diagnostic(ErrorCode.
WRN_NewRequired
, "A").WithArguments("Sub.A<T>()", "Base.A"),
2164
Diagnostic(ErrorCode.
WRN_NewRequired
, "B").WithArguments("Sub.B<T>()", "Base.B"),
2166
Diagnostic(ErrorCode.
WRN_NewRequired
, "C").WithArguments("Sub.C<T>()", "Base.C"),
3369
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_Explicit").WithArguments("D3.op_Explicit", "B.explicit operator int(B)"),
3372
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_UnaryPlus").WithArguments("D3.op_UnaryPlus", "B.operator +(B)"),
3375
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_Explicit").WithArguments("D4.op_Explicit", "B.explicit operator int(B)"),
3378
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_UnaryPlus").WithArguments("D4.op_UnaryPlus", "B.operator +(B)"),
3381
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_Explicit").WithArguments("D5.op_Explicit", "B.explicit operator int(B)"),
3384
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_UnaryPlus").WithArguments("D5.op_UnaryPlus", "B.operator +(B)"),
3976
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M(in int)", "A.M(in int)").WithLocation(8, 17));
4006
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M()", "A.M()").WithLocation(9, 29));
4036
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M()", "A.M()").WithLocation(9, 29));
4066
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("B.M()", "A.M()").WithLocation(9, 20));
4096
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("B.Property", "A.Property").WithLocation(9, 29));
4126
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("B.Property", "A.Property").WithLocation(9, 20));
4156
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("B.Property", "A.Property").WithLocation(9, 29));
Symbols\RequiredMembersTests.cs (2)
790
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field").WithArguments("Derived3.Field", "Base.Field").WithLocation(20, 16),
818
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field").WithArguments("Derived3.Field", "Base.Field").WithLocation(14, 16),
Symbols\StaticAbstractMembersInInterfacesTests.cs (18)
15755
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01()", "I1.M01()").WithLocation(12, 25),
15758
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01()", "I1.M01()").WithLocation(17, 17),
15764
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01()", "I1.M01()").WithLocation(32, 26)
15832
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01()", "I1.M01()").WithLocation(12, 25),
15835
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01()", "I1.M01()").WithLocation(17, 17),
15841
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01()", "I1.M01()").WithLocation(32, 26),
23141
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 24),
23144
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 16),
23150
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 25)
23222
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 24),
23225
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 16),
23231
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 25),
25920
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 40),
25923
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 32),
25929
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 41)
26002
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 40),
26005
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 32),
26011
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 41),
Symbols\SymbolErrorTests.cs (74)
17096
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 12, Column = 27, IsWarning = true });
17129
Diagnostic(ErrorCode.
WRN_NewRequired
, "Q").WithArguments("B.Q", "A.Q()").WithLocation(15, 16),
17132
Diagnostic(ErrorCode.
WRN_NewRequired
, "R").WithArguments("B.R", "A.R()").WithLocation(16, 23),
17135
Diagnostic(ErrorCode.
WRN_NewRequired
, "S").WithArguments("B.S", "A.S()").WithLocation(17, 16),
17138
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("B.T()", "A.T").WithLocation(18, 24),
17141
Diagnostic(ErrorCode.
WRN_NewRequired
, "U").WithArguments("B.U()", "A.U").WithLocation(19, 17),
17144
Diagnostic(ErrorCode.
WRN_NewRequired
, "V").WithArguments("B.V()", "A.V").WithLocation(20, 24),
17147
Diagnostic(ErrorCode.
WRN_NewRequired
, "W").WithArguments("B.W()", "A.W").WithLocation(21, 17),
17150
Diagnostic(ErrorCode.
WRN_NewRequired
, "P").WithArguments("B.P", "A.P()").WithLocation(14, 23));
17186
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 13, Column = 23, IsWarning = true },
17187
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 26, Column = 20, IsWarning = true });
17213
Diagnostic(ErrorCode.
WRN_NewRequired
, "f").WithArguments("C.f", "A.f()"));
17287
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM1").WithArguments("B.SM1", "A.SM1()"),
17290
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM2").WithArguments("B.SM2", "A.SM2()"),
17293
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM3").WithArguments("B.SM3", "A.SM3()"),
17296
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM4").WithArguments("B.SM4", "A.SM4()"),
17299
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM1").WithArguments("B.IM1", "A.IM1()"),
17302
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM2").WithArguments("B.IM2", "A.IM2()"),
17305
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM3").WithArguments("B.IM3", "A.IM3()"),
17308
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM4").WithArguments("B.IM4", "A.IM4()"),
17311
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP1").WithArguments("B.SP1()", "A.SP1"),
17314
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP2").WithArguments("B.SP2()", "A.SP2"),
17317
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP3").WithArguments("B.SP3", "A.SP3"),
17320
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP4").WithArguments("B.SP4", "A.SP4"),
17323
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP1").WithArguments("B.IP1()", "A.IP1"),
17326
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP2").WithArguments("B.IP2()", "A.IP2"),
17329
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP3").WithArguments("B.IP3", "A.IP3"),
17332
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP4").WithArguments("B.IP4", "A.IP4"),
17335
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE1").WithArguments("B.SE1()", "A.SE1"),
17338
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE2").WithArguments("B.SE2()", "A.SE2"),
17341
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE3").WithArguments("B.SE3", "A.SE3"),
17344
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE4").WithArguments("B.SE4", "A.SE4"),
17347
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE1").WithArguments("B.IE1()", "A.IE1"),
17350
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE2").WithArguments("B.IE2()", "A.IE2"),
17353
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE3").WithArguments("B.IE3", "A.IE3"),
17356
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE4").WithArguments("B.IE4", "A.IE4"),
17463
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T", "Class.T"),
17465
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T<A>", "Class.T<A>"),
17467
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T<A, B>", "Class.T<A, B>"),
17469
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T<A, B, C>", "Class.T<A, B, C>"),
17471
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M", "Class.M()"),
17473
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M<A>", "Class.M<A>()"),
17475
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M<A, B>", "Class.M<A, B>()"),
17477
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M<A, B, C>", "Class.M<A, B, C>()"),
17479
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D", "Class.D"),
17481
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D<A>", "Class.D<A>"),
17483
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D<A, B>", "Class.D<A, B>"),
17485
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D<A, B, C>", "Class.D<A, B, C>"),
17489
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T()", "Class.T"),
17491
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T<A>()", "Class.T"),
17493
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T<A, B>()", "Class.T"),
17495
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T<A, B, C>()", "Class.T"),
17497
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M()", "Class.M()"),
17499
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M<A>()", "Class.M<A>()"),
17501
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M<A, B>()", "Class.M<A, B>()"),
17503
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M<A, B, C>()", "Class.M<A, B, C>()"),
17505
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D()", "Class.D"),
17507
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D<A>()", "Class.D"),
17509
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D<A, B>()", "Class.D"),
17511
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D<A, B, C>()", "Class.D"),
17515
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T", "Class.T"),
17517
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T<A>", "Class.T<A>"),
17519
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T<A, B>", "Class.T<A, B>"),
17521
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T<A, B, C>", "Class.T<A, B, C>"),
17523
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M", "Class.M()"),
17525
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M<A>", "Class.M<A>()"),
17527
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M<A, B>", "Class.M<A, B>()"),
17529
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M<A, B, C>", "Class.M<A, B, C>()"),
17531
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D", "Class.D"),
17533
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D<A>", "Class.D<A>"),
17535
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D<A, B>", "Class.D<A, B>"),
17537
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D<A, B, C>", "Class.D<A, B, C>"));
17561
Diagnostic(ErrorCode.
WRN_NewRequired
, "PM").WithArguments("Parent.Child.PM(int)", "Parent.PM(int)"),
17562
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("Parent.Child.M(int)", "Parent.M(int)"));