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