68 references to ERR_IllegalSuppression
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Operators.cs (2)
2417
Error(diagnostics, ErrorCode.
ERR_IllegalSuppression
, expr.Syntax);
2675
Error(diagnostics, ErrorCode.
ERR_IllegalSuppression
, expr.Syntax);
Binder\Binder_Patterns.cs (1)
483
diagnostics.Add(ErrorCode.
ERR_IllegalSuppression
, e.Location);
Errors\ErrorFacts.cs (1)
1886
case ErrorCode.
ERR_IllegalSuppression
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (33)
Semantics\PatternMatchingTests2.cs (9)
400
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(17, 18),
406
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(18, 19),
412
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!").WithLocation(19, 21),
418
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!!").WithLocation(20, 18),
421
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(20, 18),
427
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!!").WithLocation(21, 19),
430
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "default!").WithLocation(21, 19),
436
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "(default)!!").WithLocation(22, 21),
439
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 (31)
Semantics\NullableReferenceTypesTests.cs (31)
1155
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "y2").WithLocation(8, 9),
1405
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "i").WithLocation(6, 9),
1408
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "i").WithLocation(8, 9),
1411
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "s").WithLocation(13, 9),
1414
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "s").WithLocation(15, 9)
1474
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "NS").WithLocation(11, 23),
1517
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "E").WithLocation(7, 9)
1551
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c.E").WithLocation(12, 9),
1569
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "c.E").WithLocation(18, 9),
1603
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "i").WithLocation(8, 27),
1666
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "NS").WithLocation(10, 17),
1672
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "NS.C").WithLocation(11, 17),
1678
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "C").WithLocation(12, 24),
2102
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "P").WithLocation(7, 23),
2126
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "this.M").WithLocation(7, 9),
2183
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "d.M").WithLocation(7, 9),
2189
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "d.M").WithLocation(17, 9),
2666
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M").WithLocation(7, 15)
2704
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(7, 27)
2742
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "this.M").WithLocation(8, 9),
2745
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "d.M2").WithLocation(10, 9)
3426
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(6, 9),
3432
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M2(x)").WithLocation(7, 9),
3438
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(11, 9),
3444
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "M(x)").WithLocation(12, 9),
3770
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "null!").WithLocation(5, 21));
4451
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "x").WithLocation(7, 9),
7904
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "y2").WithLocation(8, 10),
76633
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(7, 9),
76639
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(8, 9),
76642
Diagnostic(ErrorCode.
ERR_IllegalSuppression
, "t").WithLocation(9, 10),