134 references to ERR_FeatureInPreview
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1993
or ErrorCode.
ERR_FeatureInPreview
Errors\MessageID.cs (1)
473
? new CSDiagnosticInfo(ErrorCode.
ERR_FeatureInPreview
, feature.Localize())
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (108)
FieldKeywordTests.cs (35)
692
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(3, 26),
698
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("field keyword").WithLocation(4, 26),
704
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("field keyword").WithLocation(5, 26),
707
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q1").WithArguments("field keyword").WithLocation(6, 19),
713
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q2").WithArguments("field keyword").WithLocation(7, 19),
719
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q3").WithArguments("field keyword").WithLocation(8, 19),
725
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q4").WithArguments("field keyword").WithLocation(9, 19),
728
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q5").WithArguments("field keyword").WithLocation(10, 19));
852
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(3, 19),
858
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("field keyword").WithLocation(4, 19),
864
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("field keyword").WithLocation(5, 19),
867
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P4").WithArguments("field keyword").WithLocation(6, 19));
961
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q1").WithArguments("field keyword").WithLocation(3, 12),
970
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q2").WithArguments("field keyword").WithLocation(4, 12),
979
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q3").WithArguments("field keyword").WithLocation(5, 12),
985
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q4").WithArguments("field keyword").WithLocation(6, 12),
1075
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(3, 23),
1078
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("field keyword").WithLocation(4, 23),
1081
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("field keyword").WithLocation(5, 16),
1084
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P4").WithArguments("field keyword").WithLocation(6, 16),
1087
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P5").WithArguments("field keyword").WithLocation(7, 16),
1090
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P6").WithArguments("field keyword").WithLocation(8, 16));
1172
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(3, 23),
1178
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("field keyword").WithLocation(4, 23),
1184
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("field keyword").WithLocation(5, 16),
1190
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P4").WithArguments("field keyword").WithLocation(6, 16),
1196
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P5").WithArguments("field keyword").WithLocation(7, 16),
1202
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P6").WithArguments("field keyword").WithLocation(8, 16),
8357
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P3").WithArguments("field keyword").WithLocation(4, 27),
8360
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P4").WithArguments("field keyword").WithLocation(6, 27));
8588
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(3, 20),
8594
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("field keyword").WithLocation(4, 20),
8663
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(3, 27),
8666
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("field keyword").WithLocation(4, 27));
10197
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P2").WithArguments("field keyword").WithLocation(5, 19),
PartialEventsAndConstructorsTests.cs (4)
149
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "partial").WithArguments("partial events and constructors").WithLocation(3, 5),
158
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "partial").WithArguments("partial events and constructors").WithLocation(4, 5),
224
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "partial").WithArguments("partial events and constructors").WithLocation(5, 5),
236
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "partial").WithArguments("partial events and constructors").WithLocation(6, 5),
Semantics\ExtensionOperatorsTests.cs (49)
706
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(6, 18)
1097
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(6, 18),
1100
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(11, 14)
1633
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "-c1").WithArguments("extensions").WithLocation(6, 13),
1636
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "-c1").WithArguments("extensions").WithLocation(10, 17)
2196
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1").WithArguments("extensions").WithLocation(6, 13),
2199
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1").WithArguments("extensions").WithLocation(12, 13)
2757
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(s1, 1) == (s1, 1)").WithArguments("extensions").WithLocation(6, 13)
4736
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(6, 9),
4739
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(10, 18)
6239
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(6, 9),
6242
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(10, 18),
6245
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(17, 9),
6248
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "s1").WithArguments("extensions").WithLocation(20, 14),
6251
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1" + op).WithArguments("extensions").WithLocation(28, 9),
6254
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1" + op).WithArguments("extensions").WithLocation(32, 14),
6257
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1" + op).WithArguments("extensions").WithLocation(39, 9),
6260
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1" + op).WithArguments("extensions").WithLocation(42, 14)
7398
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "c1").WithArguments("extensions").WithLocation(6, 13),
7401
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op + "c1").WithArguments("extensions").WithLocation(10, 17)
8353
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1++").WithArguments("extensions").WithLocation(6, 9),
8356
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1++").WithArguments("extensions").WithLocation(10, 18)
11483
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + " s12").WithArguments("extensions").WithLocation(7, 18)
11912
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + " s12").WithArguments("extensions").WithLocation(7, 13),
11915
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s12 " + op + " s11").WithArguments("extensions").WithLocation(8, 13),
11918
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + " s12").WithArguments("extensions").WithLocation(11, 13),
11921
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s12 " + op + " s11").WithArguments("extensions").WithLocation(12, 13)
11974
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + " s12").WithArguments("extensions").WithLocation(7, 13),
11977
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s12 " + op + " s11").WithArguments("extensions").WithLocation(8, 13),
11980
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + " s12").WithArguments("extensions").WithLocation(11, 13),
11983
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s12 " + op + " s11").WithArguments("extensions").WithLocation(12, 13)
13057
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "c1 " + op + " c1").WithArguments("extensions").WithLocation(6, 13),
13060
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "c1 " + op + " c1").WithArguments("extensions").WithLocation(10, 17)
13725
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1 " + op + " s2").WithArguments("extensions").WithLocation(11, 23)
15421
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s1 " + op + " s2").WithArguments("extensions").WithLocation(11, 23)
18661
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(s1, 1) == (s1, 1)").WithArguments("extensions").WithLocation(8, 13),
18664
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(s1, 1) == (s2, 1)").WithArguments("extensions").WithLocation(15, 13),
18667
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(s1, 1) != (s1, 1)").WithArguments("extensions").WithLocation(24, 13),
18670
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "(s1, 1) != (s2, 1)").WithArguments("extensions").WithLocation(33, 13)
18786
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + " s12").WithArguments("extensions").WithLocation(7, 18)
18913
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + " s12").WithArguments("extensions").WithLocation(7, 18)
20207
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + "= s12").WithArguments("extensions").WithLocation(8, 9),
20210
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + "= s12").WithArguments("extensions").WithLocation(15, 18)
21691
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + "= s12").WithArguments("extensions").WithLocation(7, 13),
21694
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + "= s12").WithArguments("extensions").WithLocation(10, 13),
21697
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s12 " + op + "= s11").WithArguments("extensions").WithLocation(11, 13),
21700
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "s11 " + op + "= s11").WithArguments("extensions").WithLocation(12, 13)
23394
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "c1 " + op + "= c1").WithArguments("extensions").WithLocation(6, 13),
23397
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "c1 " + op + "= c1").WithArguments("extensions").WithLocation(10, 17)
Semantics\ExtensionTests.cs (9)
23433
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Property").WithArguments("extensions").WithLocation(2, 12));
24000
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Property").WithArguments("extensions").WithLocation(1, 15));
24154
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Property").WithArguments("extensions").WithLocation(1, 20));
33964
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "object.M2()").WithArguments("extensions").WithLocation(1, 1),
33967
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "object.M2").WithArguments("extensions").WithLocation(2, 19),
33970
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "object.M2").WithArguments("extensions").WithLocation(3, 9),
33973
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "object.P2").WithArguments("extensions").WithLocation(5, 5));
33991
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "new object().P").WithArguments("extensions").WithLocation(1, 5));
34133
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "42.Member").WithArguments("extensions").WithLocation(7, 13));
Semantics\ExtensionTests2.cs (1)
5540
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "extension(int).M").WithArguments("extensions").WithLocation(1, 18));
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (10)
48
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(3, 25),
51
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(4, 33)
565
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(3, 22),
568
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(8, 30)
7991
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(3, 25)
7996
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(3, 25),
7999
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(5, 33)
8670
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(3, 22),
8673
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(8, 30)
8678
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("user-defined compound assignment operators").WithLocation(3, 22)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\LambdaTests.cs (2)
8566
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "ref a").WithArguments("simple lambda parameter modifiers").WithLocation(7, 16));
8639
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "params a").WithArguments("simple lambda parameter modifiers"));
Semantics\NameOfTests.cs (5)
2395
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "List<>").WithArguments("unbound generic types in nameof operator").WithLocation(4, 16));
2423
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "A<>").WithArguments("unbound generic types in nameof operator").WithLocation(3, 16));
2439
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "B<>").WithArguments("unbound generic types in nameof operator").WithLocation(3, 23));
2455
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "A<>").WithArguments("unbound generic types in nameof operator").WithLocation(3, 16),
2458
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "B<>").WithArguments("unbound generic types in nameof operator").WithLocation(3, 20));
Semantics\NullConditionalAssignmentTests.cs (5)
40
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "=").WithArguments("null conditional assignment").WithLocation(6, 14));
75
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "=").WithArguments("null conditional assignment").WithLocation(9, 21));
115
.Where(diag => diag.Code == (int)ErrorCode.
ERR_FeatureInPreview
)
119
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, op).WithArguments("null conditional assignment").WithLocation(7, 14));
123
.Where(diag => diag.Code == (int)ErrorCode.
ERR_FeatureInPreview
)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\DefaultInterfaceImplementationTests.cs (8)
3370
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(4, 24));
3382
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(4, 9),
3458
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(4, 16));
3525
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(4, 24));
3537
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(4, 9),
3609
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P1").WithArguments("field keyword").WithLocation(4, 16));
44599
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "partial").WithArguments("partial events and constructors").WithLocation(70, 12),
44617
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "partial").WithArguments("partial events and constructors").WithLocation(78, 12),
Symbols\SymbolErrorTests.cs (3)
1802
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P5").WithArguments("field keyword").WithLocation(15, 31),
8135
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "P").WithArguments("field keyword").WithLocation(3, 16),
8138
Diagnostic(ErrorCode.
ERR_FeatureInPreview
, "Q").WithArguments("field keyword").WithLocation(4, 16),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
376
case ErrorCode.
ERR_FeatureInPreview
: