123 references to ERR_FeatureInPreview
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1999
or ErrorCode.
ERR_FeatureInPreview
Errors\MessageID.cs (1)
476
? new CSDiagnosticInfo(ErrorCode.
ERR_FeatureInPreview
, feature.Localize())
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (110)
UnsafeEvolutionTests.cs (110)
835
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
858
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "GetPointer()").WithArguments("updated memory safety rules").WithLocation(1, 9),
861
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1));
896
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 9));
984
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 11),
987
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1));
1065
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1068
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 10),
1071
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(2, 9));
1119
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 9),
1122
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(7, 18),
1125
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(7, 17));
1197
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1237
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1240
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 12),
1243
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "->").WithArguments("updated memory safety rules").WithLocation(2, 13));
1296
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1336
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1339
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 14),
1342
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "*").WithArguments("updated memory safety rules").WithLocation(2, 13));
1365
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1412
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1415
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1418
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(2, 2),
1421
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 9),
1424
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(3, 10));
1477
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1480
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1486
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 9),
1536
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1539
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1542
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[0]").WithArguments("updated memory safety rules").WithLocation(2, 1),
1545
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[0] = null").WithArguments("updated memory safety rules").WithLocation(2, 1),
1548
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 5),
1551
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[1]").WithArguments("updated memory safety rules").WithLocation(3, 5),
1554
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "_ = x[1]").WithArguments("updated memory safety rules").WithLocation(3, 1));
1607
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1610
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(2, 1),
1616
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x").WithArguments("updated memory safety rules").WithLocation(3, 5),
1646
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1681
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1764
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 11),
1767
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1));
1859
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1),
1862
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x()").WithArguments("updated memory safety rules").WithLocation(2, 12));
1885
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 1));
1929
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "delegate*").WithArguments("updated memory safety rules").WithLocation(1, 11),
1932
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "X").WithArguments("updated memory safety rules").WithLocation(2, 1),
1935
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x()").WithArguments("updated memory safety rules").WithLocation(3, 12));
1974
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
1977
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&x").WithArguments("updated memory safety rules").WithLocation(2, 10));
2017
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2101
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = &x) { }").WithArguments("updated memory safety rules").WithLocation(6, 9),
2104
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(6, 16),
2107
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "&x").WithArguments("updated memory safety rules").WithLocation(6, 25));
2156
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = new S()) { }").WithArguments("updated memory safety rules").WithLocation(5, 9),
2159
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(5, 16));
2202
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "fixed (int* p = &x) { }").WithArguments("updated memory safety rules").WithLocation(2, 1),
2205
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 8),
2313
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
2316
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(2, 1),
2319
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p++").WithArguments("updated memory safety rules").WithLocation(2, 1),
2322
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(3, 1),
2325
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(3, 11),
2328
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p + 2").WithArguments("updated memory safety rules").WithLocation(3, 11),
2331
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(4, 10),
2334
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(4, 14),
2337
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p").WithArguments("updated memory safety rules").WithLocation(5, 10),
2340
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "p2").WithArguments("updated memory safety rules").WithLocation(5, 14));
2373
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "sizeof(nint)").WithArguments("updated memory safety rules").WithLocation(2, 5),
2376
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "sizeof(S)").WithArguments("updated memory safety rules").WithLocation(3, 5));
2428
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(2, 1),
2431
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s.y").WithArguments("updated memory safety rules").WithLocation(2, 10),
2434
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s.x").WithArguments("updated memory safety rules").WithLocation(3, 9),
2437
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "[").WithArguments("updated memory safety rules").WithLocation(3, 12),
2440
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "x[5]").WithArguments("updated memory safety rules").WithLocation(7, 22));
2533
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "int*").WithArguments("updated memory safety rules").WithLocation(1, 1),
2536
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "stackalloc int[3]").WithArguments("updated memory safety rules").WithLocation(1, 10),
2539
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "stackalloc int[5]").WithArguments("updated memory safety rules").WithLocation(8, 26),
2695
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(2, 2),
2698
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(5, 6),
2701
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(6, 6),
2704
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(8, 6),
2707
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(9, 6),
2710
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(10, 6),
2713
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(11, 6),
2716
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(12, 6));
2797
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "c.M()").WithArguments("updated memory safety rules").WithLocation(2, 1));
2808
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(3, 6));
3168
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(4, 6),
3171
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "System.Runtime.CompilerServices.RequiresUnsafe").WithArguments("updated memory safety rules").WithLocation(5, 6),
3177
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "new C().M1()").WithArguments("updated memory safety rules").WithLocation(1, 1));
7333
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M2").WithArguments("updated memory safety rules").WithLocation(8, 24),
7336
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M3").WithArguments("updated memory safety rules").WithLocation(9, 51),
7339
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "M4").WithArguments("updated memory safety rules").WithLocation(10, 69));
7808
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "F").WithArguments("updated memory safety rules").WithLocation(7, 28));
7896
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("updated memory safety rules").WithLocation(8, 23),
7899
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(8, 28),
7902
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("updated memory safety rules").WithLocation(9, 30),
7905
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(9, 55),
7908
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P4").WithArguments("updated memory safety rules").WithLocation(10, 23),
7911
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(10, 73));
8087
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "this").WithArguments("updated memory safety rules").WithLocation(4, 23),
8090
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "get").WithArguments("updated memory safety rules").WithLocation(4, 37),
8093
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "set").WithArguments("updated memory safety rules").WithLocation(4, 42));
8276
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46),
8279
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46),
8282
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "E").WithArguments("updated memory safety rules").WithLocation(5, 46));
8441
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "C").WithArguments("updated memory safety rules").WithLocation(4, 19));
8598
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "+=").WithArguments("updated memory safety rules").WithLocation(4, 33));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Semantics\CollectionExpressionTests_WithElement_Extra.cs (9)
38
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(1, 12),
66
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 19),
72
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 30),
103
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 16),
106
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 28),
155
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(2, 5),
158
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(3, 5),
164
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(4, 5),
200
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "with").WithArguments("collection expression arguments").WithLocation(3, 9));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullConditionalAssignmentTests.cs (1)
123
.Where(diag => diag.Code == (int)ErrorCode.
ERR_FeatureInPreview
)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
364
case ErrorCode.
ERR_FeatureInPreview
: