24 references to DiagDescriptors
Microsoft.Analyzers.Local (24)
ApiLifecycle\ApiLifecycleAnalyzer.cs (16)
23
DiagDescriptors
.NewSymbolsMustBeMarkedExperimental,
24
DiagDescriptors
.ExperimentalSymbolsCantBeMarkedObsolete,
25
DiagDescriptors
.PublishedSymbolsCantBeMarkedExperimental,
26
DiagDescriptors
.PublishedSymbolsCantBeDeleted,
27
DiagDescriptors
.PublishedSymbolsCantChange);
76
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.NewSymbolsMustBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
84
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, type.ModifiersAndName));
89
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, method.Member));
94
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, prop.Member));
99
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, field.Member));
113
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.ExperimentalSymbolsCantBeMarkedObsolete, symbol.Locations.FirstOrDefault(), symbol));
120
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
127
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
135
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
156
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.NewSymbolsMustBeMarkedExperimental, type.Locations.FirstOrDefault(), type));
160
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.ExperimentalSymbolsCantBeMarkedObsolete, type.Locations.FirstOrDefault(), type));
CallAnalysis\CallAnalyzer.cs (3)
17
DiagDescriptors
.ToInvariantString,
18
DiagDescriptors
.ThrowsStatement,
19
DiagDescriptors
.ThrowsExpression);
CallAnalysis\Throws.cs (2)
38
DiagDescriptors
.ThrowsStatement,
52
DiagDescriptors
.ThrowsExpression,
CallAnalysis\ToInvariantString.cs (1)
51
var diagnostic = Diagnostic.Create(
DiagDescriptors
.ToInvariantString, op.Syntax.GetLocation());
InternalReferencedInPublicDocAnalyzer.cs (2)
21
private static readonly ImmutableArray<DiagnosticDescriptor> _supportedDiagnostics = ImmutableArray.Create(
DiagDescriptors
.InternalReferencedInPublicDoc);
154
var diagnostic = Diagnostic.Create(
DiagDescriptors
.InternalReferencedInPublicDoc, crefNode.Cref.GetLocation(), referencedName);