2 overrides of AnnotateApiRule
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (2)
DeclarePublicAPIAnalyzerTestsInternal.cs (1)
30
protected override DiagnosticDescriptor
AnnotateApiRule
=> DeclarePublicApiAnalyzer.AnnotateInternalApiRule;
DeclarePublicAPIAnalyzerTestsPublic.cs (1)
30
protected override DiagnosticDescriptor
AnnotateApiRule
=> DeclarePublicApiAnalyzer.AnnotatePublicApiRule;
10 references to AnnotateApiRule
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (10)
DeclarePublicAPIAnalyzerTestsBase.cs (10)
1506
GetCSharpResultAt(4, 13 + EnabledModifierCSharp.Length,
AnnotateApiRule
, "C.Field -> string"),
1508
GetCSharpResultAt(5, 24 + EnabledModifierCSharp.Length,
AnnotateApiRule
, "C.Property.get -> string"),
1510
GetCSharpResultAt(5, 29 + EnabledModifierCSharp.Length,
AnnotateApiRule
, "C.Property.set -> void"),
1512
GetCSharpResultAt(6, 13 + EnabledModifierCSharp.Length,
AnnotateApiRule
, "C.Method(string x) -> string"),
1514
GetCSharpResultAt(7, 40 + EnabledModifierCSharp.Length,
AnnotateApiRule
, "C.ArrowExpressionProperty.get -> string"),
1549
GetCSharpResultAt(4, 14 + EnabledModifierCSharp.Length,
AnnotateApiRule
, $"C.Field -> {annotated}"),
1550
GetCSharpResultAt(5, 25 + EnabledModifierCSharp.Length,
AnnotateApiRule
, $"C.Property.get -> {annotated}"),
1551
GetCSharpResultAt(6, 14 + EnabledModifierCSharp.Length,
AnnotateApiRule
, $"C.Method({annotated} x) -> {annotated}"),
1552
GetCSharpResultAt(7, 41 + EnabledModifierCSharp.Length,
AnnotateApiRule
, $"C.ArrowExpressionProperty.get -> {annotated}"));
2408
GetCSharpResultAt(5, 13 + EnabledModifierCSharp.Length,
AnnotateApiRule
, "C.ObliviousField -> string"),