72 references to WRN_NewNotRequired
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
242case ErrorCode.WRN_NewNotRequired: 644case ErrorCode.WRN_NewNotRequired:
Generated\ErrorFacts.Generated.cs (1)
14case ErrorCode.WRN_NewNotRequired:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
736diagnostics.Add(ErrorCode.WRN_NewNotRequired, symbolLocation, symbol); 1540diagnostics.Add(ErrorCode.WRN_NewNotRequired, hidingMemberLocation, hidingMember);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenOverridingAndHiding.cs (3)
1750Diagnostic(ErrorCode.WRN_NewNotRequired, "Field").WithArguments("Derived3.Field").WithLocation(99, 13), 1918Diagnostic(ErrorCode.WRN_NewNotRequired, "Method").WithArguments("Derived<U>.Method(U, U)"), 1924Diagnostic(ErrorCode.WRN_NewNotRequired, "Method").WithArguments("Derived<U>.Method<V>(V, U, System.Collections.Generic.List<V>, System.Collections.Generic.Dictionary<V, U>)"),
PrivateProtected.cs (1)
712Diagnostic(ErrorCode.WRN_NewNotRequired, "F").WithArguments("B.F()").WithLocation(3, 14)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\NumericIntPtrTests.cs (2)
989Diagnostic(ErrorCode.WRN_NewNotRequired, "F1").WithArguments("B3.F1(nuint)").WithLocation(13, 21), 992Diagnostic(ErrorCode.WRN_NewNotRequired, "F2").WithArguments("B3.F2(nint)").WithLocation(14, 21)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\InheritanceBindingTests.cs (29)
4267Diagnostic(ErrorCode.WRN_NewNotRequired, "field").WithArguments("C.field"), 4270Diagnostic(ErrorCode.WRN_NewNotRequired, "Property").WithArguments("C.Property"), 4273Diagnostic(ErrorCode.WRN_NewNotRequired, "Event").WithArguments("C.Event"), 4276Diagnostic(ErrorCode.WRN_NewNotRequired, "Interface").WithArguments("C.Interface"), 4279Diagnostic(ErrorCode.WRN_NewNotRequired, "Class").WithArguments("C.Class"), 4282Diagnostic(ErrorCode.WRN_NewNotRequired, "Struct").WithArguments("C.Struct"), 4285Diagnostic(ErrorCode.WRN_NewNotRequired, "Enum").WithArguments("C.Enum"), 4288Diagnostic(ErrorCode.WRN_NewNotRequired, "Delegate").WithArguments("C.Delegate"), 4291Diagnostic(ErrorCode.WRN_NewNotRequired, "this").WithArguments("C.this[int]"), 4294Diagnostic(ErrorCode.WRN_NewNotRequired, "field").WithArguments("S.field"), 4297Diagnostic(ErrorCode.WRN_NewNotRequired, "Property").WithArguments("S.Property"), 4300Diagnostic(ErrorCode.WRN_NewNotRequired, "Event").WithArguments("S.Event"), 4303Diagnostic(ErrorCode.WRN_NewNotRequired, "Interface").WithArguments("S.Interface"), 4306Diagnostic(ErrorCode.WRN_NewNotRequired, "Class").WithArguments("S.Class"), 4309Diagnostic(ErrorCode.WRN_NewNotRequired, "Struct").WithArguments("S.Struct"), 4312Diagnostic(ErrorCode.WRN_NewNotRequired, "Enum").WithArguments("S.Enum"), 4315Diagnostic(ErrorCode.WRN_NewNotRequired, "Delegate").WithArguments("S.Delegate"), 4318Diagnostic(ErrorCode.WRN_NewNotRequired, "this").WithArguments("S.this[int]"), 4321Diagnostic(ErrorCode.WRN_NewNotRequired, "Method").WithArguments("D.Method()"), 4324Diagnostic(ErrorCode.WRN_NewNotRequired, "Property").WithArguments("D.Property"), 4327Diagnostic(ErrorCode.WRN_NewNotRequired, "Method").WithArguments("Derived.Method()"), 4330Diagnostic(ErrorCode.WRN_NewNotRequired, "Property").WithArguments("Derived.Property"), 6376Diagnostic(ErrorCode.WRN_NewNotRequired, "Method").WithArguments("NS1.Base2.Method"), 6384Diagnostic(ErrorCode.WRN_NewNotRequired, "Property").WithArguments("NS3.Base2.Property<T>"), 6467Diagnostic(ErrorCode.WRN_NewNotRequired, "Property").WithArguments("NS1.Base2.Property<T>") 6499Diagnostic(ErrorCode.WRN_NewNotRequired, "Method").WithArguments("Base.Method()"), 6505Diagnostic(ErrorCode.WRN_NewNotRequired, "Method").WithArguments("Derived.Method<T>()")); 6541Diagnostic(ErrorCode.WRN_NewNotRequired, "MethOd").WithArguments("Derived.MethOd"), 6544Diagnostic(ErrorCode.WRN_NewNotRequired, "METhod").WithArguments("Derived.METhod"),
Semantics\NativeIntegerTests.cs (2)
3247Diagnostic(ErrorCode.WRN_NewNotRequired, "F1").WithArguments("B3.F1(nuint)").WithLocation(13, 21), 3250Diagnostic(ErrorCode.WRN_NewNotRequired, "F2").WithArguments("B3.F2(System.IntPtr)").WithLocation(14, 21)
Semantics\NullableReferenceTypesTests.cs (1)
151980Diagnostic(ErrorCode.WRN_NewNotRequired, "M1").WithArguments("B.M1<T>(T??)").WithLocation(11, 21),
Semantics\TopLevelStatementsTests.cs (5)
744Diagnostic(ErrorCode.WRN_NewNotRequired, "a").WithArguments("<invalid-global-code>.a").WithLocation(2, 12), 2569Diagnostic(ErrorCode.WRN_NewNotRequired, "M").WithArguments("<invalid-global-code>.M()").WithLocation(5, 10) 2600Diagnostic(ErrorCode.WRN_NewNotRequired, "F").WithArguments("<invalid-global-code>.F").WithLocation(5, 9) 2625Diagnostic(ErrorCode.WRN_NewNotRequired, "M").WithArguments("<invalid-global-code>.M()").WithLocation(5, 10) 4359Diagnostic(ErrorCode.WRN_NewNotRequired, "localA").WithArguments("<invalid-global-code>.localA()").WithLocation(2, 10),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (24)
Symbols\DefaultInterfaceImplementationTests.cs (2)
65900Diagnostic(ErrorCode.WRN_NewNotRequired, "I2").WithArguments("I3.I2<T>").WithLocation(10, 19), 65903Diagnostic(ErrorCode.WRN_NewNotRequired, "I4").WithArguments("C3.I4<T>").WithLocation(23, 26)
Symbols\InterfaceOverriddenOrHiddenMembersTests.cs (1)
47Diagnostic(ErrorCode.WRN_NewNotRequired, "goo").WithArguments("I0.goo(int)"));
Symbols\OverriddenOrHiddenMembersTests.cs (18)
3485Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D1.Finalize"), 3488Diagnostic(ErrorCode.WRN_NewNotRequired, "op_UnaryPlus").WithArguments("D1.op_UnaryPlus"), 3491Diagnostic(ErrorCode.WRN_NewNotRequired, "op_Explicit").WithArguments("D1.op_Explicit"), 3494Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D6.Finalize"), 3497Diagnostic(ErrorCode.WRN_NewNotRequired, "op_UnaryPlus").WithArguments("D6.op_UnaryPlus"), 3500Diagnostic(ErrorCode.WRN_NewNotRequired, "op_Explicit").WithArguments("D6.op_Explicit"), 3503Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D3.Finalize"), 3506Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D5.Finalize"), 3509Diagnostic(ErrorCode.WRN_NewNotRequired, "op_Explicit").WithArguments("D8.op_Explicit(B)"), 3512Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D8.Finalize()"), 3515Diagnostic(ErrorCode.WRN_NewNotRequired, "op_UnaryPlus").WithArguments("D8.op_UnaryPlus(B)"), 3518Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D4.Finalize"), 3521Diagnostic(ErrorCode.WRN_NewNotRequired, "op_Explicit").WithArguments("D7.op_Explicit(B)"), 3524Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D7.Finalize()"), 3527Diagnostic(ErrorCode.WRN_NewNotRequired, "op_UnaryPlus").WithArguments("D7.op_UnaryPlus(B)"), 3530Diagnostic(ErrorCode.WRN_NewNotRequired, "op_Explicit").WithArguments("D2.op_Explicit"), 3533Diagnostic(ErrorCode.WRN_NewNotRequired, "Finalize").WithArguments("D2.Finalize"), 3536Diagnostic(ErrorCode.WRN_NewNotRequired, "op_UnaryPlus").WithArguments("D2.op_UnaryPlus"),
Symbols\Source\EnumTests.cs (2)
251Diagnostic(ErrorCode.WRN_NewNotRequired, "Figure").WithArguments("Program.Figure").WithLocation(9, 14), 254Diagnostic(ErrorCode.WRN_NewNotRequired, "Figure2").WithArguments("Program.Figure2").WithLocation(4, 21)
Symbols\SymbolErrorTests.cs (1)
17441new ErrorDescription { Code = (int)ErrorCode.WRN_NewNotRequired, Line = 11, Column = 24, IsWarning = true });