146 references to WRN_DeprecatedSymbolStr
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
295
case ErrorCode.
WRN_DeprecatedSymbolStr
:
932
case ErrorCode.
WRN_DeprecatedSymbolStr
:
Generated\ErrorFacts.Generated.cs (1)
46
case ErrorCode.
WRN_DeprecatedSymbolStr
:
Symbols\ObsoleteAttributeHelpers.cs (2)
176
(message: { }, isError: false, isColInit: false) => ErrorCode.
WRN_DeprecatedSymbolStr
193
ErrorCode.
WRN_DeprecatedSymbolStr
);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenAsyncMainTests.cs (1)
1478
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Task").WithArguments("MyExtensions.GetAwaiter(System.Threading.Tasks.Task)", "test").WithLocation(34, 12));
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2641
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new E()").WithArguments("E.implicit operator C(E)", "E is obsolete").WithLocation(9, 15)
Emit\CompilationEmitTests.cs (7)
4316
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
4363
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
4366
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
4424
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestOptional").WithArguments("System.Security.Permissions.SecurityAction.RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
4427
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
4490
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
4547
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestOptional").WithArguments("System.Security.Permissions.SecurityAction.RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (112)
Attributes\AttributeTests_Assembly.cs (2)
911
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "System.Reflection.AssemblyFlags(12345)").WithArguments("System.Reflection.AssemblyFlagsAttribute.AssemblyFlagsAttribute(int)", "This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202"));
926
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "System.Reflection.AssemblyFlags(12345U)").WithArguments("System.Reflection.AssemblyFlagsAttribute.AssemblyFlagsAttribute(uint)", "This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202"));
Attributes\AttributeTests_Experimental.cs (13)
214
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.F1()").WithArguments("A.F1()", "").WithLocation(23, 9),
220
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.F3()").WithArguments("A.F3()", "").WithLocation(25, 9),
265
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "local1()").WithArguments("local1()", "").WithLocation(7, 9),
310
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.F1()").WithArguments("A.F1()", "").WithLocation(23, 9),
316
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.F3()").WithArguments("A.F3()", "").WithLocation(25, 9),
563
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SA").WithArguments("SA", "DA").WithLocation(6, 19),
569
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SC").WithArguments("SC", "OC").WithLocation(8, 19),
572
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SD").WithArguments("SD", "DC").WithLocation(9, 19),
581
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "IG").WithArguments("IG", "DG").WithLocation(12, 19),
584
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "IH").WithArguments("IH", "DH").WithLocation(13, 19),
587
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "II").WithArguments("II", "DI").WithLocation(14, 19),
596
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "EM").WithArguments("EM", "OM").WithLocation(17, 19),
602
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "EO").WithArguments("EO", "DO").WithLocation(19, 19),
Attributes\AttributeTests_Security.cs (24)
106
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
322
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
325
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
466
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
469
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestOptional").WithArguments("System.Security.Permissions.SecurityAction.RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
472
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestRefuse").WithArguments("System.Security.Permissions.SecurityAction.RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
475
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
478
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestOptional").WithArguments("System.Security.Permissions.SecurityAction.RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
481
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestRefuse").WithArguments("System.Security.Permissions.SecurityAction.RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
502
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
505
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestOptional").WithArguments("System.Security.Permissions.SecurityAction.RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
508
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestRefuse").WithArguments("System.Security.Permissions.SecurityAction.RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
511
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
514
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestOptional").WithArguments("System.Security.Permissions.SecurityAction.RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
517
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestRefuse").WithArguments("System.Security.Permissions.SecurityAction.RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
1205
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestOptional").WithArguments("System.Security.Permissions.SecurityAction.RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
1208
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.RequestMinimum").WithArguments("System.Security.Permissions.SecurityAction.RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
1512
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
1553
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
1556
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
1589
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
1592
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
1634
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "SecurityAction.Deny").WithArguments("System.Security.Permissions.SecurityAction.Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."));
1642
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
),
Attributes\AttributeTests_WellKnownAttributes.cs (72)
5801
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "A1").WithArguments("A1", "Do not use A1").WithLocation(37, 2),
5960
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "ObsoleteMethod2()").WithArguments("Test.ObsoleteMethod2()", "Do not call this method").WithLocation(9, 9),
5969
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteMethod4()").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(15, 9),
5972
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.field1").WithArguments("Test.field1", "Do not use this field").WithLocation(16, 17),
5975
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(17, 18),
5978
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(18, 18),
5993
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteExtensionMethod1()").WithArguments("TestExtension.ObsoleteExtensionMethod1(Test)", "Do not call this extension method").WithLocation(32, 9),
5996
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4(int)", "Do not call this method").WithLocation(34, 28),
5999
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(36, 24),
6002
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(38, 30),
6005
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(38, 46),
6014
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "gt.field1").WithArguments("GenericTest<int>.field1", "Do not use this field").WithLocation(43, 18),
6017
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "gt.Property1").WithArguments("GenericTest<int>.Property1", "Do not use this property").WithLocation(44, 19),
6020
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.event1").WithArguments("Test.event1", "Do not use this event").WithLocation(30, 9),
6023
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "gt.event1").WithArguments("GenericTest<int>.event1", "Do not use this event").WithLocation(45, 9),
6169
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "TestClass2").WithArguments("TestClass2", "TestClass2 is obsolete").WithLocation(5, 29),
6175
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "TestClass4").WithArguments("TestClass4", "TestClass4 is obsolete").WithLocation(7, 29),
6181
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c.TestMethod()").WithArguments("TestClass.TestMethod()", "Do not use TestMethod").WithLocation(12, 9),
6184
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c.Prop1").WithArguments("TestClass.Prop1", "Do not use Prop1").WithLocation(13, 17),
6196
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c.Prop2").WithArguments("TestClass.Prop2.get", "Do not use Prop2.Get").WithLocation(18, 13),
6397
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "derived.Joo").WithArguments("Base.Joo.get", "Base.Joo is Obsolete").WithLocation(29, 13),
6400
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "derived.Koo").WithArguments("Base.Koo", "Base.Koo is Obsolete").WithLocation(30, 13));
6468
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F1").WithArguments("Test.F1", "F1 is obsolete").WithLocation(7, 15),
6474
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F3").WithArguments("Test.F3", "F3 is obsolete").WithLocation(11, 15),
6507
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(44, 15),
6513
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(38, 15),
6516
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(39, 15),
7117
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "A1").WithArguments("Event1.A1", "Do not use"),
7120
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "A").WithArguments("Event1.A", "Do not use"),
7123
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "e.A1").WithArguments("Event1.A1", "Do not use"),
7126
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "e.A").WithArguments("Event1.A", "Do not use"));
7176
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("Foreachable.GetEnumerator()", "4"),
7179
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("MyEnumerator.MoveNext()", "1"),
7182
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("MyEnumerator.Current", "2")
7934
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(B)a").WithArguments("B.explicit operator B(A)", "B to A"),
7937
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "b").WithArguments("B.implicit operator A(B)", "A to B"),
7940
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(A)b").WithArguments("B.implicit operator A(B)", "A to B"),
7943
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(B)(A)b").WithArguments("B.explicit operator B(A)", "B to A"),
7946
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(A)(B)(A)b").WithArguments("B.implicit operator A(B)", "A to B"));
7991
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "ai").WithArguments("A<int>.implicit operator int(A<int>)", "A<T> to T"),
7994
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "i").WithArguments("A<int>.implicit operator A<int>(int)", "T to A<T>"));
8042
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator bool(Convertible)", "To bool"),
8045
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"),
8048
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"),
8051
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"));
8084
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"));
8126
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c++").WithArguments("Convertible.implicit operator Convertible(int)", "From int"),
8129
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c++").WithArguments("Convertible.implicit operator int(Convertible)", "To int"),
8132
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c -= 2").WithArguments("Convertible.implicit operator Convertible(int)", "From int"),
8135
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c -= 2").WithArguments("Convertible.implicit operator int(Convertible)", "To int"),
8138
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("Convertible.implicit operator int(Convertible)", "To int"));
8170
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c ?? 1").WithArguments("Convertible.implicit operator int(Convertible)", "To int"));
8379
Assert.Equal(ErrorCode.
WRN_DeprecatedSymbolStr
, (ErrorCode)diag.Code);
9581
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "base.OnBehaviorAttached()").WithArguments("System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()", "A"));
9761
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Class1").WithArguments("Class1", "Class1 is deprecated.").WithLocation(8, 9),
9764
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Class2").WithArguments("Class2", "Class2 is deprecated.").WithLocation(9, 9),
9815
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F()").WithArguments("C.F()", "Deprecated").WithLocation(12, 9),
9886
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
9889
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
9897
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
9900
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
9969
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
9972
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
9980
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
9983
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
10078
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.Goo()").WithArguments("IGoo1.Goo()", "IGoo1.Goo has been deprecated").WithLocation(12, 9),
10081
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "b.Goo()").WithArguments("ConcreteGoo2.Goo()", "ConcreteGoo2.Goo has been deprecated").WithLocation(19, 9),
10084
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.Goo()").WithArguments("IGoo3.Goo()", "IGoo3.Goo has been deprecated").WithLocation(24, 9),
10087
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "b.Goo()").WithArguments("ConcreteGoo3.Goo()", "ConcreteGoo3.Goo has been deprecated").WithLocation(25, 9)
13230
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "TestWarning").WithArguments("TestWarning", "Broken Warning Class").WithLocation(4, 14));
13833
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "LegacyObject1").WithArguments("LegacyObject1", "Do not use LegacyObject1").WithLocation(7, 27),
13836
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "LegacyObject2").WithArguments("LegacyObject2", "Do not useLegacyObject2").WithLocation(8, 27)
Semantics\PatternMatchingTests4.cs (1)
946
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "System.Runtime.CompilerServices.ITuple").WithArguments("System.Runtime.CompilerServices.ITuple", "WarningOnly").WithLocation(11, 18)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\ImplicitObjectCreationTests.cs (8)
4614
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "M1()").WithArguments("C.M1()", "reported 1").WithLocation(6, 9),
4617
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "M2()").WithArguments("C.M2()", "reported 2").WithLocation(7, 9)
4634
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C.M1()").WithArguments("C.M1()", "reported 1").WithLocation(6, 9),
4637
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C.M2()").WithArguments("C.M2()", "reported 2").WithLocation(7, 9)
4893
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new A()").WithArguments("A.A()", "Message").WithLocation(5, 18),
4896
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new A()").WithArguments("A.A()", "Message").WithLocation(6, 20),
4902
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new()").WithArguments("A.A()", "Message").WithLocation(8, 18),
4905
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new()").WithArguments("A.A()", "Message").WithLocation(9, 20),
Semantics\OperatorTests.cs (1)
6982
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "s1 == null").WithArguments("S1.operator ==(S1, S1)", "A"));
Semantics\OverloadResolutionTests.cs (2)
7193
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "v.Add").WithArguments("Extensions.Add(IViewable2)", "A"));
7232
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "v.Add").WithArguments("Extensions.Add(IViewable2)", "A"));
Semantics\SemanticErrorTests.cs (1)
20997
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "System.Collections.CaseInsensitiveHashCodeProvider").WithArguments("System.Collections.CaseInsensitiveHashCodeProvider", "Please use StringComparer instead."),
Semantics\TopLevelStatementsTests.cs (1)
9412
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Program").WithArguments("Program", "error").WithLocation(11, 12)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\SymbolErrorTests.cs (7)
21748
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(3, 35)
21798
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(7, 35)
21845
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(3, 35)
21854
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(3, 35)
21909
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(5, 33),
21918
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(7, 54),
21927
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(9, 58)