70 references to ERR_IllegalSuppression
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Operators.cs (2)
3875
Error(diagnostics, ErrorCode.
ERR_IllegalSuppression
, expr.Syntax);
4145
Error(diagnostics, ErrorCode.
ERR_IllegalSuppression
, expr.Syntax);
Binder\Binder_Patterns.cs (1)
484
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)
396
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(17, 18),
402
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(18, 19),
408
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!").WithLocation(19, 21),
414
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!!").WithLocation(20, 18),
417
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(20, 18),
423
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!!").WithLocation(21, 19),
426
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(21, 19),
432
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!!").WithLocation(22, 21),
435
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!").WithLocation(22, 21),
Semantics\PatternMatchingTests5.cs (24)
979
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(10, 22),
982
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(11, 22),
985
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(12, 23),
988
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(13, 23),
991
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "Type!").WithLocation(14, 22),
994
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType").WithLocation(15, 22),
997
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType.Type!").WithLocation(16, 22),
1000
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(17, 24),
1003
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(21, 22),
1006
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(22, 22),
1009
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(23, 23),
1012
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(24, 23),
1015
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "Type!").WithLocation(25, 22),
1018
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType").WithLocation(26, 22),
1021
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType.Type!").WithLocation(27, 22),
1024
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(28, 24),
1027
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(33, 17),
1030
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(34, 17),
1033
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c!").WithLocation(35, 18),
1036
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "1!").WithLocation(36, 18),
1039
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "Type!").WithLocation(37, 17),
1042
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType").WithLocation(38, 17),
1045
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "ContainerType.Type!").WithLocation(39, 17),
1048
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)
3438
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(6, 9),
3444
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M2(x)").WithLocation(7, 9),
3450
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(11, 9),
3456
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M(x)").WithLocation(12, 9),
3782
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "null!").WithLocation(5, 21));
4463
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(7, 9),
7916
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "y2").WithLocation(8, 10),
80328
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(7, 9),
80334
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(8, 9),
80337
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));