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