207 references to ERR_DeprecatedSymbolStr
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Crefs.cs (1)
1005
case ErrorCode.
ERR_DeprecatedSymbolStr
:
Errors\ErrorFacts.cs (2)
933
case ErrorCode.
ERR_DeprecatedSymbolStr
:
2349
case ErrorCode.
ERR_DeprecatedSymbolStr
:
Symbols\ObsoleteAttributeHelpers.cs (2)
174
(message: { }, isError: true, isColInit: false) => ErrorCode.
ERR_DeprecatedSymbolStr
,
192
ErrorCode.
ERR_DeprecatedSymbolStr
or ErrorCode.WRN_DeprecatedCollectionInitAddStr or
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (34)
CodeGen\CodeGenAsyncMainTests.cs (1)
1533
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Task").WithArguments("MyExtensions.GetAwaiter(System.Threading.Tasks.Task)", "test").WithLocation(31, 12));
CodeGen\CodeGenNullCoalescingAssignmentTests.cs (1)
2638
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new D()").WithArguments("D.implicit operator C(D)", "D is obsolete").WithLocation(8, 15),
CodeGen\CodeGenTupleEqualityTests.cs (24)
2883
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "(new A(), new A()) == (new X(), new Y())").WithArguments("A.operator ==(A, Y)", "obsolete").WithLocation(6, 37),
2886
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "(new A(), new A()) == (new X(), new Y())").WithArguments("A.operator ==(A, Y)", "obsolete").WithLocation(6, 37),
2889
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "(new A(), new A()) != (new X(), new Y())").WithArguments("A.operator !=(A, Y)", "obsolete too").WithLocation(7, 37),
2892
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "(new A(), new A()) != (new X(), new Y())").WithArguments("A.operator !=(A, Y)", "obsolete too").WithLocation(7, 37)
3135
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(5, 12),
3138
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(5, 12),
3141
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(5, 19),
3144
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(5, 19),
3147
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(8, 12),
3150
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt1").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(8, 12),
3153
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(8, 19),
3156
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "nt2").WithArguments("C.implicit operator int(C)", "obsolete").WithLocation(8, 19)
3184
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t == t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").WithLocation(4, 49),
3187
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t == t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").WithLocation(4, 49),
3190
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t != t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").WithLocation(5, 52),
3193
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t != t").WithArguments("NotBool.implicit operator bool(NotBool)", "obsolete").WithLocation(5, 52)
3219
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t == t").WithArguments("A.operator ==(A, A)", "").WithLocation(4, 49),
3222
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t == t").WithArguments("A.operator ==(A, A)", "").WithLocation(4, 49),
3225
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t != t").WithArguments("A.operator !=(A, A)", "").WithLocation(5, 52),
3228
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t != t").WithArguments("A.operator !=(A, A)", "").WithLocation(5, 52)
3259
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t == t").WithArguments("NotBool.operator false(NotBool)", "obsolete").WithLocation(4, 49),
3262
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t == t").WithArguments("NotBool.operator false(NotBool)", "obsolete").WithLocation(4, 49),
3265
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t != t").WithArguments("NotBool.operator true(NotBool)", "obsolete").WithLocation(5, 52),
3268
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "t != t").WithArguments("NotBool.operator true(NotBool)", "obsolete").WithLocation(5, 52)
CodeGen\CodeGenTupleTest.cs (7)
8163
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "((int i, bool c)?)x").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(5, 5),
8166
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new C()").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(6, 27),
8169
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "x").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(10, 5),
8172
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new C()").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(11, 9)
8231
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "((int i, bool c)?)x").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(5, 5),
8234
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "x").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(9, 5)
8276
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "((int i, bool c))x").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(3, 5)
CodeGen\UnsafeTests.cs (1)
5266
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Fixable(1)").WithArguments("Fixable.GetPinnableReference()", "hi").WithLocation(8, 25)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (144)
Attributes\AttributeTests_Experimental.cs (12)
217
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "a.F2()").WithArguments("A.F2()", "").WithLocation(24, 9),
223
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "a.F4()").WithArguments("A.F4()", "").WithLocation(26, 9),
268
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "local2()").WithArguments("local2()", "").WithLocation(8, 9));
313
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "a.F2()").WithArguments("A.F2()", "").WithLocation(24, 9),
319
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "a.F4()").WithArguments("A.F4()", "").WithLocation(26, 9),
566
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "SB").WithArguments("SB", "DB").WithLocation(7, 19),
575
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "SE").WithArguments("SE", "DD").WithLocation(10, 19),
578
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "SF").WithArguments("SF", "OF").WithLocation(11, 19),
590
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "IJ").WithArguments("IJ", "DJ").WithLocation(15, 19),
593
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "IK").WithArguments("IK", "DK").WithLocation(16, 19),
599
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "EN").WithArguments("EN", "ON").WithLocation(18, 19),
605
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "EP").WithArguments("EP", "DP").WithLocation(20, 19));
Attributes\AttributeTests_IsByRefLike.cs (7)
851
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Test.S1").WithArguments("Test.S1", "Types with embedded references are not supported in this version of your compiler.").WithLocation(7, 9),
854
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Test.S2").WithArguments("Test.S2", "Types with embedded references are not supported in this version of your compiler.").WithLocation(8, 9),
917
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Test.S2").WithArguments("Test.S2", "Types with embedded references are not supported in this version of your compiler.").WithLocation(10, 9),
920
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Test.field").WithArguments("Test.field", "Types with embedded references are not supported in this version of your compiler.").WithLocation(13, 17),
932
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Test.S1").WithArguments("Test.S1", "Types with embedded references are not supported in this version of your compiler.").WithLocation(7, 9),
935
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Test.S2").WithArguments("Test.S2", "Types with embedded references are not supported in this version of your compiler.").WithLocation(10, 9),
938
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Test.field").WithArguments("Test.field", "Types with embedded references are not supported in this version of your compiler.").WithLocation(13, 17),
Attributes\AttributeTests_WellKnownAttributes.cs (71)
5792
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(7, 5),
5798
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(6, 5),
5804
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(8, 18),
5807
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(12, 9),
5810
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Class1").WithArguments("Class1", "Do not use this type").WithLocation(16, 23),
5963
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "ObsoleteMethod3()").WithArguments("Test.ObsoleteMethod3()", "").WithLocation(10, 9),
6172
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "TestClass3").WithArguments("TestClass3", "Do not use TestClass3").WithLocation(6, 29),
6187
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "c.field1").WithArguments("TestClass.field1", "Do not use field1").WithLocation(14, 13),
6190
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "c.event1").WithArguments("TestClass.event1", "Do not use event").WithLocation(15, 9),
6193
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "c.event1").WithArguments("TestClass.event1", "Do not use event").WithLocation(16, 9),
6199
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "c.Prop3").WithArguments("TestClass.Prop3.set", "Do not use Prop3.Get").WithLocation(19, 9));
6394
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "derived.Hoo").WithArguments("Base.Hoo.get", "Base.Hoo is Obsolete").WithLocation(28, 13),
6471
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "F2").WithArguments("Test.F2", "F2 is obsolete").WithLocation(15, 15),
6477
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "F4").WithArguments("Test.F4", "blah").WithLocation(18, 15),
6504
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(43, 15),
6510
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(45, 15),
6519
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "F7").WithArguments("Test.F7", "F7 is obsolete").WithLocation(40, 15));
6793
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att").WithArguments("Att.Att()", "Constructor").WithLocation(37, 2),
6796
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Field = 1").WithArguments("Att.Field", "Field").WithLocation(38, 6),
6799
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att(Field = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(38, 2),
6802
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop = 1").WithArguments("Att.Prop", "Property").WithLocation(39, 6),
6805
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att(Prop = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(39, 2),
6808
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop2 = 1").WithArguments("Att.Prop2", "Property").WithLocation(40, 6),
6811
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att(Prop2 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(40, 2),
6814
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop3 = 1").WithArguments("Att.Prop3.set", "setter").WithLocation(41, 6),
6817
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att(Prop3 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(41, 2),
6820
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop4 = 1").WithArguments("Att.Prop4", "Property").WithLocation(42, 6),
6823
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop4 = 1").WithArguments("Att.Prop4.set", "setter").WithLocation(42, 6),
6826
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att(Prop4 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(42, 2),
6829
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att(Prop5 = 1)").WithArguments("Att.Att()", "Constructor").WithLocation(43, 2),
6832
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Att()").WithArguments("Att.Att()", "Constructor").WithLocation(46, 6));
6914
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop = 1").WithArguments("BaseAtt.Prop.set", "setter").WithLocation(59, 13),
6917
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop1 = 1").WithArguments("BaseAtt.Prop1.set", "setter").WithLocation(60, 13),
6920
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop2 = 1").WithArguments("BaseAtt.Prop2.set", "base setter").WithLocation(61, 13));
7111
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "public D() { }").WithArguments("C.C()", "Do not use"),
7114
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, ": base()").WithArguments("C.C()", "Do not use"),
7336
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Z").WithArguments("N.A", "Do not use").WithLocation(12, 22),
7339
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Y").WithArguments("N.A", "Do not use").WithLocation(13, 27),
7342
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "X").WithArguments("N.A", "Do not use").WithLocation(10, 22),
7345
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Y").WithArguments("N.A", "Do not use").WithLocation(11, 22),
7348
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Y").WithArguments("N.A", "Do not use").WithLocation(16, 16),
7351
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Y").WithArguments("N.A", "Do not use").WithLocation(17, 21),
7354
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Z").WithArguments("N.A", "Do not use").WithLocation(18, 16),
7357
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "X").WithArguments("N.A", "Do not use").WithLocation(15, 16));
9767
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Class3").WithArguments("Class3", "Class3 is deprecated.").WithLocation(10, 9),
9770
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Class4").WithArguments("Class4", "Class4 is deprecated.").WithLocation(11, 9),
9773
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "x6.P1").WithArguments("Class6.P1.get", "P1.get is deprecated.").WithLocation(19, 14),
9776
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "x6.P2").WithArguments("Class6.P2.set", "P1.get is deprecated.").WithLocation(22, 9),
9818
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "G()").WithArguments("C.G()", "Removed").WithLocation(13, 9));
10131
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.set", "Changed my mind; don't put this prop.").WithLocation(8, 9),
10134
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "i.ExceptionalProp").WithArguments("IExceptionalInterface.ExceptionalProp.get", "Actually, don't even use the prop at all.").WithLocation(9, 27)
13227
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "TestError").WithArguments("TestError", "Broken Error Class").WithLocation(3, 14),
13628
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[^1]").WithArguments("C.this[int]", "error").WithLocation(17, 13),
13631
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[^1]").WithArguments("C.Count", "error").WithLocation(17, 13),
13634
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[..]").WithArguments("C.Slice(int, int)", "error").WithLocation(18, 13),
13637
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[..]").WithArguments("C.Count", "error").WithLocation(18, 13)
13675
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[^1]").WithArguments("C.Count.get", "error").WithLocation(23, 13),
13678
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[^1]").WithArguments("C.this[int].get", "error").WithLocation(23, 13),
13681
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[..]").WithArguments("C.Count.get", "error").WithLocation(24, 13),
13684
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[..]").WithArguments("C.Slice(int, int)", "error").WithLocation(24, 13)
13725
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[^1]").WithArguments("C.this[System.Index].get", "error").WithLocation(26, 13),
13728
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "this[..]").WithArguments("C.this[System.Range].get", "error").WithLocation(27, 13)
13883
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "var").WithArguments("var", "error").WithLocation(3, 1),
13911
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "var").WithArguments("Legacy", "error").WithLocation(4, 1),
13914
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "var").WithArguments("Legacy", "error").WithLocation(4, 1)
13946
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "unmanaged").WithArguments("unmanaged", "error").WithLocation(3, 30),
13949
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "notnull").WithArguments("notnull", "error").WithLocation(7, 30),
13995
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "unmanaged").WithArguments("Legacy1", "error").WithLocation(5, 30),
13998
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "unmanaged").WithArguments("Legacy1", "error").WithLocation(5, 30),
14001
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "notnull").WithArguments("Legacy2", "error").WithLocation(9, 30),
14004
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "notnull").WithArguments("Legacy2", "error").WithLocation(9, 30)
Semantics\PatternMatchingTests_ListPatterns.cs (51)
1229
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test1.Count", "error3").WithLocation(25, 28),
1232
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test1.Count", "error3").WithLocation(25, 28),
1235
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test1.this[int]", "error2").WithLocation(25, 28),
1238
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test1.Count", "error3").WithLocation(26, 28),
1241
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test1.Count", "error3").WithLocation(26, 28),
1244
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test1.this[int]", "error2").WithLocation(26, 28),
1247
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Test1.Count", "error3").WithLocation(26, 29),
1250
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Test1.Slice(int, int)", "error1").WithLocation(26, 29),
1253
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test2.Length", "error6").WithLocation(27, 28),
1256
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test2.this[System.Index]", "error4").WithLocation(27, 28),
1259
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test2.Length", "error6").WithLocation(28, 28),
1262
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test2.this[System.Index]", "error4").WithLocation(28, 28),
1265
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Test2.this[System.Range]", "error5").WithLocation(28, 29)
1329
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test1.Count.get", "error2").WithLocation(40, 28),
1332
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test1.Count.get", "error2").WithLocation(40, 28),
1335
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test1.this[int].get", "error1").WithLocation(40, 28),
1339
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[^1]").WithArguments("Test1.Count.get", "error2").WithLocation(41, 13),
1342
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[^1]").WithArguments("Test1.this[int].get", "error1").WithLocation(41, 13),
1346
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test1.Count.get", "error2").WithLocation(43, 28),
1349
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test1.Count.get", "error2").WithLocation(43, 28),
1352
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test1.this[int].get", "error1").WithLocation(43, 28),
1355
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Test1.Slice(int, int)", "error1").WithLocation(43, 29),
1358
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Test1.Count.get", "error2").WithLocation(43, 29),
1362
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[..0]").WithArguments("Test1.Slice(int, int)", "error1").WithLocation(44, 13),
1365
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[..0]").WithArguments("Test1.Count.get", "error2").WithLocation(44, 13),
1369
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test2.Length.get", "error5").WithLocation(46, 28),
1372
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Test2.this[System.Index].get", "error3").WithLocation(46, 28),
1376
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test2()[^1]").WithArguments("Test2.this[System.Index].get", "error3").WithLocation(47, 13),
1380
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test2.Length.get", "error5").WithLocation(49, 28),
1383
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Test2.this[System.Index].get", "error3").WithLocation(49, 28),
1386
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Test2.this[System.Range].get", "error4").WithLocation(49, 29),
1390
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test2()[..0]").WithArguments("Test2.this[System.Range].get", "error4").WithLocation(50, 13)
1485
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Base1.Count.get", "error3").WithLocation(73, 28),
1488
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Base1.Count.get", "error3").WithLocation(73, 28),
1491
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Base1.this[int].get", "error2").WithLocation(73, 28),
1495
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Base1.Count.get", "error3").WithLocation(74, 28),
1498
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Base1.Count.get", "error3").WithLocation(74, 28),
1501
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Base1.this[int].get", "error2").WithLocation(74, 28),
1504
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Base1.Count.get", "error3").WithLocation(74, 29),
1507
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Base1.Slice(int, int)", "error1").WithLocation(74, 29),
1511
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Base2.Length.get", "error6").WithLocation(75, 28),
1514
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[0]").WithArguments("Base2.this[System.Index].get", "error4").WithLocation(75, 28),
1518
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Base2.Length.get", "error6").WithLocation(76, 28),
1521
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "[..0]").WithArguments("Base2.this[System.Index].get", "error4").WithLocation(76, 28),
1524
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "..0").WithArguments("Base2.this[System.Range].get", "error5").WithLocation(76, 29),
1528
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[^1]").WithArguments("Base1.Count.get", "error3").WithLocation(78, 13),
1531
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[^1]").WithArguments("Base1.this[int].get", "error2").WithLocation(78, 13),
1535
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[..0]").WithArguments("Base1.Count.get", "error3").WithLocation(79, 13),
1538
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test1()[..0]").WithArguments("Base1.Slice(int, int)", "error1").WithLocation(79, 13),
1542
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test2()[^1]").WithArguments("Base2.this[System.Index].get", "error4").WithLocation(80, 13),
1546
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new Test2()[..0]").WithArguments("Base2.this[System.Range].get", "error5").WithLocation(81, 13)
Semantics\PatternMatchingTests5.cs (3)
1699
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop1").WithArguments("C1.Prop1", "error Prop1").WithLocation(7, 21),
1702
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop2").WithArguments("C2.Prop2", "error Prop2").WithLocation(7, 27)
1742
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "Prop1.Prop2").WithArguments("C1.Prop1.get", "error Prop1").WithLocation(7, 21)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\DeconstructionTests.cs (4)
3909
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new C()").WithArguments("C.Deconstruct(out int, out int)", "Deprecated").WithLocation(6, 27)
6446
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "(int i, bool c) = x").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(4, 1),
6449
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "new C()").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(5, 14),
6452
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "(i, c) = new C2()").WithArguments("C.implicit operator bool(C)", "Obsolete error").WithLocation(6, 1)
Semantics\InterpolationTests.cs (3)
3379
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, @"$""{(object)1}""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.DefaultInterpolatedStringHandler(int, int)", "Constructor is obsolete").WithLocation(1, 5)
3407
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "base").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "AppendLiteral is obsolete").WithLocation(1, 7)
3435
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "{(object)1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted<T>(T, int, string)", "AppendFormatted is obsolete").WithLocation(1, 11)
Semantics\LocalFunctionTests.cs (1)
5952
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "local2()").WithArguments("local2()", "hello").WithLocation(9, 9));
Semantics\RawInterpolationTests_Handler.cs (3)
1774
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, @"$""""""{(object)1}""""""").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.DefaultInterpolatedStringHandler(int, int)", "Constructor is obsolete").WithLocation(1, 5));
1801
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "base").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(string)", "AppendLiteral is obsolete").WithLocation(1, 9));
1828
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "{(object)1}").WithArguments("System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted<T>(T, int, string)", "AppendFormatted is obsolete").WithLocation(1, 13));
Semantics\SemanticErrorTests.cs (1)
11588
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "I1").WithArguments("a.I1", "Obsolescence message")
Semantics\TargetTypedConditionalOperatorTests.cs (1)
144
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "GetD()").WithArguments("D.implicit operator X(D)", "D").WithLocation(6, 28)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\SymbolErrorTests.cs (7)
21745
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C1").WithArguments("C1", "Error").WithLocation(2, 35),
21795
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C1").WithArguments("C1", "Error").WithLocation(6, 35),
21842
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C1").WithArguments("C1", "Error").WithLocation(2, 35),
21851
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C1").WithArguments("C1", "Error").WithLocation(2, 35),
21906
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C1").WithArguments("C1", "Error").WithLocation(4, 33),
21915
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C1").WithArguments("C1", "Error").WithLocation(7, 25),
21924
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C1").WithArguments("C1", "Error").WithLocation(9, 29),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Parsing\UsingDirectiveParsingTests.cs (4)
3689
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "X").WithArguments("C", "").WithLocation(11, 5),
3695
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C").WithArguments("C", "").WithLocation(12, 5),
3839
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "X").WithArguments("C", "").WithLocation(11, 5),
3845
Diagnostic(ErrorCode.
ERR_DeprecatedSymbolStr
, "C").WithArguments("C", "").WithLocation(12, 5),