30 references to WRN_CLS_BadBase
Microsoft.CodeAnalysis.CSharp (4)
Compiler\ClsComplianceChecker.cs (1)
529
this.AddDiagnostic(ErrorCode.
WRN_CLS_BadBase
, symbol.Locations[0], symbol, baseType);
Errors\ErrorFacts.cs (2)
377
case ErrorCode.
WRN_CLS_BadBase
:
1466
case 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)
401
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A").WithArguments("A", "Bad"),
404
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B").WithArguments("B", "Generic<int*[]>"));
412
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B").WithArguments("B", "Generic<int*[]>").WithLocation(10, 14),
415
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A").WithArguments("A", "Bad").WithLocation(6, 14));
446
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A").WithArguments("A", "Bad"),
449
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B").WithArguments("B", "Generic<int*[]>"));
503
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A1").WithArguments("A1", "Bad1"),
506
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A2").WithArguments("A2", "Bad2"),
509
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A3").WithArguments("A3", "Bad3"),
512
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B1").WithArguments("B1", "Generic<int*[]>"),
515
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B2").WithArguments("B2", "Generic<Bad2>"));
569
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A1").WithArguments("A1", "Bad1"),
572
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A2").WithArguments("A2", "Bad2"),
575
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A3").WithArguments("A3", "Bad3"),
578
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B1").WithArguments("B1", "Generic<int*[]>"),
581
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B2").WithArguments("B2", "Generic<Bad2>"));
593
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "B1").WithArguments("B1", "Generic<int*[]>").WithLocation(10, 21),
596
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A3").WithArguments("A3", "Bad3").WithLocation(8, 14),
599
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A1").WithArguments("A1", "Bad1").WithLocation(6, 14),
602
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "A2").WithArguments("A2", "Bad2").WithLocation(7, 14),
605
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)
18915
Diagnostic(ErrorCode.
WRN_CLS_BadBase
, "C").WithArguments("C", "B"));