153 references to WRN_DeprecatedSymbolStr
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
308
case ErrorCode.
WRN_DeprecatedSymbolStr
:
994
or ErrorCode.
WRN_DeprecatedSymbolStr
Generated\ErrorFacts.Generated.cs (1)
46
case ErrorCode.
WRN_DeprecatedSymbolStr
:
Symbols\ObsoleteAttributeHelpers.cs (2)
215
(message: { }, isError: false, isColInit: false) => ErrorCode.
WRN_DeprecatedSymbolStr
232
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)
4322
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."));
4369
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."),
4372
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."));
4430
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."),
4433
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."));
4496
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."));
4553
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.Emit3.UnitTests (118)
Attributes\AttributeTests_Assembly.cs (2)
912
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"));
927
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)
5890
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "A1").WithArguments("A1", "Do not use A1").WithLocation(37, 2),
6049
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "ObsoleteMethod2()").WithArguments("Test.ObsoleteMethod2()", "Do not call this method").WithLocation(9, 9),
6058
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteMethod4()").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(15, 9),
6061
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.field1").WithArguments("Test.field1", "Do not use this field").WithLocation(16, 17),
6064
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(17, 18),
6067
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(18, 18),
6082
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteExtensionMethod1()").WithArguments("TestExtension.ObsoleteExtensionMethod1(Test)", "Do not call this extension method").WithLocation(32, 9),
6085
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4(int)", "Do not call this method").WithLocation(34, 28),
6088
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.ObsoleteMethod4").WithArguments("Test.ObsoleteMethod4()", "Do not call this method").WithLocation(36, 24),
6091
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Property1").WithArguments("Test.Property1", "Do not use this property").WithLocation(38, 30),
6094
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Property2").WithArguments("Test.Property2", "Do not use this property").WithLocation(38, 46),
6103
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "gt.field1").WithArguments("GenericTest<int>.field1", "Do not use this field").WithLocation(43, 18),
6106
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "gt.Property1").WithArguments("GenericTest<int>.Property1", "Do not use this property").WithLocation(44, 19),
6109
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "t.event1").WithArguments("Test.event1", "Do not use this event").WithLocation(30, 9),
6112
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "gt.event1").WithArguments("GenericTest<int>.event1", "Do not use this event").WithLocation(45, 9),
6258
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "TestClass2").WithArguments("TestClass2", "TestClass2 is obsolete").WithLocation(5, 29),
6264
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "TestClass4").WithArguments("TestClass4", "TestClass4 is obsolete").WithLocation(7, 29),
6270
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c.TestMethod()").WithArguments("TestClass.TestMethod()", "Do not use TestMethod").WithLocation(12, 9),
6273
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c.Prop1").WithArguments("TestClass.Prop1", "Do not use Prop1").WithLocation(13, 17),
6285
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c.Prop2").WithArguments("TestClass.Prop2.get", "Do not use Prop2.Get").WithLocation(18, 13),
6486
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "derived.Joo").WithArguments("Base.Joo.get", "Base.Joo is Obsolete").WithLocation(29, 13),
6489
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "derived.Koo").WithArguments("Base.Koo", "Base.Koo is Obsolete").WithLocation(30, 13));
6557
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F1").WithArguments("Test.F1", "F1 is obsolete").WithLocation(7, 15),
6563
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F3").WithArguments("Test.F3", "F3 is obsolete").WithLocation(11, 15),
6593
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(44, 15),
6599
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(38, 15),
6602
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "F6").WithArguments("Test.F6", "F6 is obsolete").WithLocation(39, 15),
7203
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "A1").WithArguments("Event1.A1", "Do not use"),
7206
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "A").WithArguments("Event1.A", "Do not use"),
7209
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "e.A1").WithArguments("Event1.A1", "Do not use"),
7212
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "e.A").WithArguments("Event1.A", "Do not use"));
7262
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("Foreachable.GetEnumerator()", "4"),
7265
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("MyEnumerator.MoveNext()", "1"),
7268
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("MyEnumerator.Current", "2")
8020
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(B)a").WithArguments("B.explicit operator B(A)", "B to A"),
8023
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "b").WithArguments("B.implicit operator A(B)", "A to B"),
8026
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(A)b").WithArguments("B.implicit operator A(B)", "A to B"),
8029
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(B)(A)b").WithArguments("B.explicit operator B(A)", "B to A"),
8032
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "(A)(B)(A)b").WithArguments("B.implicit operator A(B)", "A to B"));
8077
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "ai").WithArguments("A<int>.implicit operator int(A<int>)", "A<T> to T"),
8080
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "i").WithArguments("A<int>.implicit operator A<int>(int)", "T to A<T>"));
8128
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator bool(Convertible)", "To bool"),
8131
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"),
8134
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"),
8137
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"));
8170
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int"));
8212
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c++").WithArguments("Convertible.implicit operator Convertible(int)", "From int").WithLocation(26, 13),
8215
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c++").WithArguments("Convertible.implicit operator int(Convertible)", "To int").WithLocation(26, 13),
8218
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c -= 2").WithArguments("Convertible.implicit operator Convertible(int)", "From int").WithLocation(27, 13),
8221
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c").WithArguments("Convertible.implicit operator int(Convertible)", "To int").WithLocation(27, 13),
8224
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "foreach").WithArguments("Convertible.implicit operator int(Convertible)", "To int").WithLocation(23, 9));
8256
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "c ?? 1").WithArguments("Convertible.implicit operator int(Convertible)", "To int"));
8465
Assert.Equal(ErrorCode.
WRN_DeprecatedSymbolStr
, (ErrorCode)diag.Code);
9667
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "base.OnBehaviorAttached()").WithArguments("System.Web.UI.Design.ReadWriteControlDesignerBase.OnBehaviorAttached()", "A"));
9849
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Class1").WithArguments("Class1", "Class1 is deprecated.").WithLocation(8, 9),
9852
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Class2").WithArguments("Class2", "Class2 is deprecated.").WithLocation(9, 9),
9916
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C.G()").WithArguments("C.G()", "Deprecated").WithLocation(7, 9));
9984
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
9987
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
9995
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
9998
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
10067
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
10070
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
10078
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Goo()").WithArguments("Test.Goo()", "hello").WithLocation(8, 13),
10081
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Test.Bar()").WithArguments("Test.Bar()", "hi").WithLocation(9, 13)
10176
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.Goo()").WithArguments("IGoo1.Goo()", "IGoo1.Goo has been deprecated").WithLocation(12, 9),
10179
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "b.Goo()").WithArguments("ConcreteGoo2.Goo()", "ConcreteGoo2.Goo has been deprecated").WithLocation(19, 9),
10182
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "a.Goo()").WithArguments("IGoo3.Goo()", "IGoo3.Goo has been deprecated").WithLocation(24, 9),
10185
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "b.Goo()").WithArguments("ConcreteGoo3.Goo()", "ConcreteGoo3.Goo has been deprecated").WithLocation(25, 9)
13406
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "TestWarning").WithArguments("TestWarning", "Broken Warning Class").WithLocation(4, 14));
14009
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "LegacyObject1").WithArguments("LegacyObject1", "Do not use LegacyObject1").WithLocation(7, 27),
14012
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "LegacyObject2").WithArguments("LegacyObject2", "Do not useLegacyObject2").WithLocation(8, 27)
OverloadResolutionPriorityTests.cs (2)
1106
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C").WithArguments("C", "Test").WithLocation(22, 12)
1149
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C").WithArguments("C", "Test").WithLocation(22, 12)
Semantics\ExperimentalAttributeTests.cs (1)
2844
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C").WithArguments("C", "DEPRECATED").WithLocation(3, 12),
Semantics\InlineArrayTests.cs (1)
1216
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Length").WithArguments("Buffer.Length", "yes").WithLocation(2, 46)
Semantics\PatternMatchingTests4.cs (1)
945
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "System.Runtime.CompilerServices.ITuple").WithArguments("System.Runtime.CompilerServices.ITuple", "WarningOnly").WithLocation(11, 18)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (2)
5166
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "++x").WithArguments("C1.operator ++()", "Test").WithLocation(13, 9)
16579
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "x += 1").WithArguments("C1.operator +=(int)", "Test").WithLocation(13, 9)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Semantics\ImplicitObjectCreationTests.cs (8)
4755
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "M1()").WithArguments("C.M1()", "reported 1").WithLocation(6, 9),
4758
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "M2()").WithArguments("C.M2()", "reported 2").WithLocation(7, 9)
4775
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C.M1()").WithArguments("C.M1()", "reported 1").WithLocation(6, 9),
4778
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C.M2()").WithArguments("C.M2()", "reported 2").WithLocation(7, 9)
5034
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new A()").WithArguments("A.A()", "Message").WithLocation(5, 18),
5037
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new A()").WithArguments("A.A()", "Message").WithLocation(6, 20),
5043
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new()").WithArguments("A.A()", "Message").WithLocation(8, 18),
5046
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new()").WithArguments("A.A()", "Message").WithLocation(9, 20),
Semantics\NameOfTests.cs (1)
1990
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "new C().P").WithArguments("C.P", "Length").WithLocation(2, 9)
Semantics\OperatorTests.cs (1)
6983
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "s1 == null").WithArguments("S1.operator ==(S1, S1)", "A"));
Semantics\OverloadResolutionTests.cs (2)
7191
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "v.Add").WithArguments("Extensions.Add(IViewable2)", "A"));
7230
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "v.Add").WithArguments("Extensions.Add(IViewable2)", "A"));
Semantics\SemanticErrorTests.cs (1)
21221
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "System.Collections.CaseInsensitiveHashCodeProvider").WithArguments("System.Collections.CaseInsensitiveHashCodeProvider", "Please use StringComparer instead."),
Semantics\TopLevelStatementsTests.cs (1)
9425
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "Program").WithArguments("Program", "error").WithLocation(11, 12)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\SymbolErrorTests.cs (7)
21906
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(3, 35)
21956
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(7, 35)
22003
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(3, 35)
22012
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(3, 35)
22067
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(5, 33),
22076
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(7, 54),
22085
Diagnostic(ErrorCode.
WRN_DeprecatedSymbolStr
, "C2").WithArguments("C2", "Warning").WithLocation(9, 58)