30 references to WRN_CLS_BadBase
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
536
this.AddDiagnostic(ErrorCode.
WRN_CLS_BadBase
, symbol.GetFirstLocation(), symbol, baseType);
Errors\ErrorFacts.cs (2)
390
case ErrorCode.
WRN_CLS_BadBase
:
1527
or ErrorCode.
WRN_CLS_BadBase
Generated\ErrorFacts.Generated.cs (1)
133
case ErrorCode.
WRN_CLS_BadBase
:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Symbols\Source\ClsComplianceTests.cs (24)
400
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A").WithArguments("A", "Bad"),
403
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B").WithArguments("B", "Generic<int*[]>"));
411
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B").WithArguments("B", "Generic<int*[]>").WithLocation(10, 14),
414
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A").WithArguments("A", "Bad").WithLocation(6, 14));
445
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A").WithArguments("A", "Bad"),
448
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B").WithArguments("B", "Generic<int*[]>"));
502
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A1").WithArguments("A1", "Bad1"),
505
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A2").WithArguments("A2", "Bad2"),
508
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A3").WithArguments("A3", "Bad3"),
511
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B1").WithArguments("B1", "Generic<int*[]>"),
514
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B2").WithArguments("B2", "Generic<Bad2>"));
568
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A1").WithArguments("A1", "Bad1"),
571
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A2").WithArguments("A2", "Bad2"),
574
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A3").WithArguments("A3", "Bad3"),
577
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B1").WithArguments("B1", "Generic<int*[]>"),
580
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B2").WithArguments("B2", "Generic<Bad2>"));
592
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B1").WithArguments("B1", "Generic<int*[]>").WithLocation(10, 21),
595
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A3").WithArguments("A3", "Bad3").WithLocation(8, 14),
598
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A1").WithArguments("A1", "Bad1").WithLocation(6, 14),
601
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A2").WithArguments("A2", "Bad2").WithLocation(7, 14),
604
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B2").WithArguments("B2", "Generic<Bad2>").WithLocation(11, 14));
3510
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "Compliant").WithArguments("N1.Compliant", "N1.NonCompliant"),
3513
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "Compliant").WithArguments("N2.Compliant", "N2.NonCompliant"),
3563
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "Compliant").WithArguments("N1.Compliant", "N1.NonCompliant"),
Symbols\Source\EnumTests.cs (1)
698
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "COLORS").WithArguments("c1.COLORS", "uint"));
Symbols\SymbolErrorTests.cs (1)
19060
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "C").WithArguments("C", "B"));