70 references to ERR_IllegalSuppression
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Operators.cs (2)
3950
Error(diagnostics, ErrorCode.
ERR_IllegalSuppression
, expr.Syntax);
4220
Error(diagnostics, ErrorCode.
ERR_IllegalSuppression
, expr.Syntax);
Binder\Binder_Patterns.cs (1)
495
diagnostics.Add(ErrorCode.
ERR_IllegalSuppression
, e.Location);
Errors\ErrorFacts.cs (1)
1943
or ErrorCode.
ERR_IllegalSuppression
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (33)
Semantics\PatternMatchingTests2.cs (9)
413
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(17, 18),
419
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(18, 19),
425
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!").WithLocation(19, 21),
431
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!!").WithLocation(20, 18),
434
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(20, 18),
440
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!!").WithLocation(21, 19),
443
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(21, 19),
449
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!!").WithLocation(22, 21),
452
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!").WithLocation(22, 21),
Semantics\PatternMatchingTests5.cs (24)
980
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(10, 22),
983
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(11, 22),
986
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(12, 23),
989
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(13, 23),
992
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "Type!").WithLocation(14, 22),
995
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType").WithLocation(15, 22),
998
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType.Type!").WithLocation(16, 22),
1001
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(17, 24),
1004
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(21, 22),
1007
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(22, 22),
1010
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(23, 23),
1013
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(24, 23),
1016
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "Type!").WithLocation(25, 22),
1019
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType").WithLocation(26, 22),
1022
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType.Type!").WithLocation(27, 22),
1025
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(28, 24),
1028
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(33, 17),
1031
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(34, 17),
1034
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(35, 18),
1037
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(36, 18),
1040
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "Type!").WithLocation(37, 17),
1043
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType").WithLocation(38, 17),
1046
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType.Type!").WithLocation(39, 17),
1049
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(40, 19)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (33)
Semantics\NullableReferenceTypesTests.cs (31)
1167
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "y2").WithLocation(8, 9),
1417
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "i").WithLocation(6, 9),
1420
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "i").WithLocation(8, 9),
1423
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "s").WithLocation(13, 9),
1426
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "s").WithLocation(15, 9)
1486
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "NS").WithLocation(11, 23),
1529
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "E").WithLocation(7, 9)
1563
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c.E").WithLocation(12, 9),
1581
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c.E").WithLocation(18, 9),
1615
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "i").WithLocation(8, 27),
1678
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "NS").WithLocation(10, 17),
1684
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "NS.C").WithLocation(11, 17),
1690
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "C").WithLocation(12, 24),
2114
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "P").WithLocation(7, 23),
2138
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "this.M").WithLocation(7, 9),
2195
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "d.M").WithLocation(7, 9),
2201
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "d.M").WithLocation(17, 9),
2677
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M").WithLocation(7, 15)
2715
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(7, 27)
2753
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "this.M").WithLocation(8, 9),
2756
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "d.M2").WithLocation(10, 9)
3445
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(6, 9),
3451
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M2(x)").WithLocation(7, 9),
3457
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(11, 9),
3463
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M(x)").WithLocation(12, 9),
3789
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "null!").WithLocation(5, 21));
4470
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(7, 9),
7923
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "y2").WithLocation(8, 10),
80390
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(7, 9),
80396
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(8, 9),
80399
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(9, 10),
Semantics\NullConditionalAssignmentTests.cs (2)
2689
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, ".F").WithLocation(9, 12),
2692
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c2.F").WithLocation(10, 9));