285 references to WRN_NewRequired
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
276
case ErrorCode.
WRN_NewRequired
:
643
case ErrorCode.
WRN_NewRequired
:
Generated\ErrorFacts.Generated.cs (1)
13
case ErrorCode.
WRN_NewRequired
:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
716
diagnostics.Add(ErrorCode.
WRN_NewRequired
, symbolLocation, symbol, hiddenMember);
1581
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)
20284
Diagnostic(ErrorCode.
WRN_NewRequired
, "MR2").WithArguments("I1.MR2()", "I0.MR2()").WithLocation(10, 26),
20287
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("I1.M2((int notA, int notB))", "I0.M2((int a, int b))").WithLocation(9, 10)
20318
Diagnostic(ErrorCode.
WRN_NewRequired
, "M6").WithArguments("I1.M6()", "I0.M6()").WithLocation(18, 20),
20321
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("I1.M2((int a, int b))", "I0.M2((int a, int b))").WithLocation(14, 10),
20324
Diagnostic(ErrorCode.
WRN_NewRequired
, "M5").WithArguments("I1.M5()", "I0.M5()").WithLocation(17, 26),
20327
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)
4515
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)
983
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B2.F1(nint)", "A.F1(nint)").WithLocation(8, 17),
986
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B2.F2(nuint)", "A.F2(nuint)").WithLocation(9, 17),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (74)
Semantics\DynamicTests.cs (4)
267
Diagnostic(ErrorCode.
WRN_NewRequired
, "G").WithArguments("B.G(object)", "A.G(dynamic)"),
269
Diagnostic(ErrorCode.
WRN_NewRequired
, "H").WithArguments("B.H(dynamic[])", "A.H(params object[])"),
271
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("B.I(ref object)", "A.I(ref dynamic)"),
273
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)
2085
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("Derived.Property", "Base.Property").WithLocation(8, 19)
2286
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithoutInit.Property", "I1.Property").WithLocation(12, 12),
2289
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInit.Property", "I1.Property").WithLocation(16, 12),
2292
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInitWithDefaultImplementation.Property", "I1.Property").WithLocation(24, 12)
2379
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithoutInit.Property", "I1.Property").WithLocation(13, 12),
2382
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInit.Property", "I1.Property").WithLocation(17, 12),
2385
Diagnostic(ErrorCode.
WRN_NewRequired
, "Property").WithArguments("IWithInitWithImplementation.Property", "I1.Property").WithLocation(31, 12),
Semantics\NativeIntegerTests.cs (10)
3241
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B2.F1(nint)", "A.F1(System.IntPtr)").WithLocation(8, 17),
3244
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B2.F2(System.UIntPtr)", "A.F2(nuint)").WithLocation(9, 17),
3308
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B1.F1(nint)", "A.F1(System.IntPtr)").WithLocation(3, 17),
3311
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B1.F2(nuint)", "A.F2(System.UIntPtr)").WithLocation(4, 17),
3314
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B3.F1(nint)", "A.F1(System.IntPtr)").WithLocation(13, 17),
3317
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B3.F2(nuint)", "A.F2(System.UIntPtr)").WithLocation(14, 17)
3367
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B2.F1(System.IntPtr)", "A.F1(nint)").WithLocation(8, 17),
3370
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B2.F2(System.UIntPtr)", "A.F2(nuint)").WithLocation(9, 17),
3373
Diagnostic(ErrorCode.
WRN_NewRequired
, "F1").WithArguments("B4.F1(System.IntPtr)", "A.F1(nint)").WithLocation(18, 17),
3376
Diagnostic(ErrorCode.
WRN_NewRequired
, "F2").WithArguments("B4.F2(System.UIntPtr)", "A.F2(nuint)").WithLocation(19, 17)
Semantics\OperatorTests.cs (2)
6616
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_Addition").WithArguments("Derived4.op_Addition(Base4, Derived4)", "Base4.op_Addition(Base4, Derived4)"));
6690
Diagnostic(ErrorCode.
WRN_NewRequired
, "op_Explicit").WithArguments("Derived4.op_Explicit(Base4)", "Base4.op_Explicit(Base4)"));
Semantics\RecordTests.cs (20)
10178
Diagnostic(ErrorCode.
WRN_NewRequired
, "X").WithArguments("B.X", "A.X").WithLocation(8, 19),
10181
Diagnostic(ErrorCode.
WRN_NewRequired
, "Y").WithArguments("B.Y", "A.Y").WithLocation(9, 19));
10215
Diagnostic(ErrorCode.
WRN_NewRequired
, "X").WithArguments("B.X", "A.X").WithLocation(7, 19),
10218
Diagnostic(ErrorCode.
WRN_NewRequired
, "Y").WithArguments("B.Y", "A.Y").WithLocation(8, 19));
29151
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29176
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29201
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 22)
29351
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(12, 16)
29389
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(12, 16)
29461
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 23)
29471
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 23)
29492
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 23)
29621
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29653
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "Base.I").WithLocation(9, 17)
29711
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I<T>()", "Base.I").WithLocation(13, 17)
29739
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I()", "GrandBase.I").WithLocation(12, 17)
29841
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 18)
29867
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 32),
29896
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("C.I", "Base.I").WithLocation(9, 25)
29917
Diagnostic(ErrorCode.
WRN_NewRequired
, "I").WithArguments("Derived.I()", "Base.I").WithLocation(8, 16),
Semantics\RefFieldTests.cs (5)
16762
Diagnostic(ErrorCode.
WRN_NewRequired
, "M1").WithArguments("B2.M1(scoped R<string>)", "A<string>.M1(R<string>)").WithLocation(11, 17),
16765
Diagnostic(ErrorCode.
WRN_NewRequired
, "M2").WithArguments("B2.M2(R<string>)", "A<string>.M2(scoped R<string>)").WithLocation(12, 17),
16768
Diagnostic(ErrorCode.
WRN_NewRequired
, "M3").WithArguments("B2.M3(scoped ref R<string>)", "A<string>.M3(ref R<string>)").WithLocation(13, 17),
16771
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("B2.this[scoped R<string>]", "A<string>.this[R<string>]").WithLocation(14, 19),
16774
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)
14010
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 8, Column = 16, IsWarning = true },
14011
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)
36680
Diagnostic(ErrorCode.
WRN_NewRequired
, "M1").WithArguments("I2.M1()", "I1.M1()").WithLocation(10, 25 + implModifiers.Length),
65381
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(10, 15),
65384
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(23, 22)
65465
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2()").WithLocation(9, 15),
65468
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4()").WithLocation(22, 22)
65548
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2()", "I1.I2").WithLocation(11, 10),
65551
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4()", "C1.I4").WithLocation(23, 17)
65627
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(9, 16),
65630
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(19, 23)
65703
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2()").WithLocation(9, 16),
65706
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4()").WithLocation(20, 23)
65780
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2()", "I1.I2").WithLocation(9, 10),
65783
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4()", "C1.I4").WithLocation(19, 17)
65952
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1<int>.I2").WithLocation(13, 15),
65955
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1<int>.I4").WithLocation(29, 22)
65997
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(9, 15),
66000
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(21, 22)
66078
Diagnostic(ErrorCode.
WRN_NewRequired
, "I2").WithArguments("I3.I2", "I1.I2").WithLocation(10, 16),
66081
Diagnostic(ErrorCode.
WRN_NewRequired
, "I4").WithArguments("C3.I4", "C1.I4").WithLocation(21, 23)
Symbols\ExtendedPartialMethodsTests.cs (1)
1471
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)
608
Diagnostic(ErrorCode.
WRN_NewRequired
, "this").WithArguments("Derived.this[int]", "Base.this[int]"));
733
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)
806
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field").WithArguments("Derived3.Field", "Base.Field").WithLocation(20, 16),
834
Diagnostic(ErrorCode.
WRN_NewRequired
, "Field").WithArguments("Derived3.Field", "Base.Field").WithLocation(14, 16),
Symbols\StaticAbstractMembersInInterfacesTests.cs (18)
15797
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01()", "I1.M01()").WithLocation(12, 25),
15800
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01()", "I1.M01()").WithLocation(17, 17),
15806
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01()", "I1.M01()").WithLocation(32, 26)
15874
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01()", "I1.M01()").WithLocation(12, 25),
15877
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01()", "I1.M01()").WithLocation(17, 17),
15883
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01()", "I1.M01()").WithLocation(32, 26),
22627
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 24),
22630
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 16),
22636
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 25)
22708
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 24),
22711
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 16),
22717
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 25),
25406
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 40),
25409
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 32),
25415
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 41)
25488
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I3.M01", "I1.M01").WithLocation(12, 40),
25491
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I4.M01", "I1.M01").WithLocation(17, 32),
25497
Diagnostic(ErrorCode.
WRN_NewRequired
, "M01").WithArguments("I7.M01", "I1.M01").WithLocation(32, 41),
Symbols\SymbolErrorTests.cs (74)
16951
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 12, Column = 27, IsWarning = true });
16984
Diagnostic(ErrorCode.
WRN_NewRequired
, "Q").WithArguments("B.Q", "A.Q()").WithLocation(15, 16),
16987
Diagnostic(ErrorCode.
WRN_NewRequired
, "R").WithArguments("B.R", "A.R()").WithLocation(16, 23),
16990
Diagnostic(ErrorCode.
WRN_NewRequired
, "S").WithArguments("B.S", "A.S()").WithLocation(17, 16),
16993
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("B.T()", "A.T").WithLocation(18, 24),
16996
Diagnostic(ErrorCode.
WRN_NewRequired
, "U").WithArguments("B.U()", "A.U").WithLocation(19, 17),
16999
Diagnostic(ErrorCode.
WRN_NewRequired
, "V").WithArguments("B.V()", "A.V").WithLocation(20, 24),
17002
Diagnostic(ErrorCode.
WRN_NewRequired
, "W").WithArguments("B.W()", "A.W").WithLocation(21, 17),
17005
Diagnostic(ErrorCode.
WRN_NewRequired
, "P").WithArguments("B.P", "A.P()").WithLocation(14, 23));
17041
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 13, Column = 23, IsWarning = true },
17042
new ErrorDescription { Code = (int)ErrorCode.
WRN_NewRequired
, Line = 26, Column = 20, IsWarning = true });
17068
Diagnostic(ErrorCode.
WRN_NewRequired
, "f").WithArguments("C.f", "A.f()"));
17142
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM1").WithArguments("B.SM1", "A.SM1()"),
17145
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM2").WithArguments("B.SM2", "A.SM2()"),
17148
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM3").WithArguments("B.SM3", "A.SM3()"),
17151
Diagnostic(ErrorCode.
WRN_NewRequired
, "SM4").WithArguments("B.SM4", "A.SM4()"),
17154
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM1").WithArguments("B.IM1", "A.IM1()"),
17157
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM2").WithArguments("B.IM2", "A.IM2()"),
17160
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM3").WithArguments("B.IM3", "A.IM3()"),
17163
Diagnostic(ErrorCode.
WRN_NewRequired
, "IM4").WithArguments("B.IM4", "A.IM4()"),
17166
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP1").WithArguments("B.SP1()", "A.SP1"),
17169
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP2").WithArguments("B.SP2()", "A.SP2"),
17172
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP3").WithArguments("B.SP3", "A.SP3"),
17175
Diagnostic(ErrorCode.
WRN_NewRequired
, "SP4").WithArguments("B.SP4", "A.SP4"),
17178
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP1").WithArguments("B.IP1()", "A.IP1"),
17181
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP2").WithArguments("B.IP2()", "A.IP2"),
17184
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP3").WithArguments("B.IP3", "A.IP3"),
17187
Diagnostic(ErrorCode.
WRN_NewRequired
, "IP4").WithArguments("B.IP4", "A.IP4"),
17190
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE1").WithArguments("B.SE1()", "A.SE1"),
17193
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE2").WithArguments("B.SE2()", "A.SE2"),
17196
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE3").WithArguments("B.SE3", "A.SE3"),
17199
Diagnostic(ErrorCode.
WRN_NewRequired
, "SE4").WithArguments("B.SE4", "A.SE4"),
17202
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE1").WithArguments("B.IE1()", "A.IE1"),
17205
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE2").WithArguments("B.IE2()", "A.IE2"),
17208
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE3").WithArguments("B.IE3", "A.IE3"),
17211
Diagnostic(ErrorCode.
WRN_NewRequired
, "IE4").WithArguments("B.IE4", "A.IE4"),
17318
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T", "Class.T"),
17320
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T<A>", "Class.T<A>"),
17322
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T<A, B>", "Class.T<A, B>"),
17324
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithClass.T<A, B, C>", "Class.T<A, B, C>"),
17326
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M", "Class.M()"),
17328
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M<A>", "Class.M<A>()"),
17330
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M<A, B>", "Class.M<A, B>()"),
17332
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithClass.M<A, B, C>", "Class.M<A, B, C>()"),
17334
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D", "Class.D"),
17336
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D<A>", "Class.D<A>"),
17338
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D<A, B>", "Class.D<A, B>"),
17340
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithClass.D<A, B, C>", "Class.D<A, B, C>"),
17344
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T()", "Class.T"),
17346
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T<A>()", "Class.T"),
17348
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T<A, B>()", "Class.T"),
17350
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithMethod.T<A, B, C>()", "Class.T"),
17352
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M()", "Class.M()"),
17354
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M<A>()", "Class.M<A>()"),
17356
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M<A, B>()", "Class.M<A, B>()"),
17358
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithMethod.M<A, B, C>()", "Class.M<A, B, C>()"),
17360
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D()", "Class.D"),
17362
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D<A>()", "Class.D"),
17364
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D<A, B>()", "Class.D"),
17366
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithMethod.D<A, B, C>()", "Class.D"),
17370
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T", "Class.T"),
17372
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T<A>", "Class.T<A>"),
17374
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T<A, B>", "Class.T<A, B>"),
17376
Diagnostic(ErrorCode.
WRN_NewRequired
, "T").WithArguments("HideWithDelegate.T<A, B, C>", "Class.T<A, B, C>"),
17378
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M", "Class.M()"),
17380
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M<A>", "Class.M<A>()"),
17382
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M<A, B>", "Class.M<A, B>()"),
17384
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("HideWithDelegate.M<A, B, C>", "Class.M<A, B, C>()"),
17386
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D", "Class.D"),
17388
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D<A>", "Class.D<A>"),
17390
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D<A, B>", "Class.D<A, B>"),
17392
Diagnostic(ErrorCode.
WRN_NewRequired
, "D").WithArguments("HideWithDelegate.D<A, B, C>", "Class.D<A, B, C>"));
17416
Diagnostic(ErrorCode.
WRN_NewRequired
, "PM").WithArguments("Parent.Child.PM(int)", "Parent.PM(int)"),
17417
Diagnostic(ErrorCode.
WRN_NewRequired
, "M").WithArguments("Parent.Child.M(int)", "Parent.M(int)"));