24 references to DiagDescriptors
Microsoft.Analyzers.Local (24)
ApiLifecycle\ApiLifecycleAnalyzer.cs (16)
21
DiagDescriptors
.NewSymbolsMustBeMarkedExperimental,
22
DiagDescriptors
.ExperimentalSymbolsCantBeMarkedObsolete,
23
DiagDescriptors
.PublishedSymbolsCantBeMarkedExperimental,
24
DiagDescriptors
.PublishedSymbolsCantBeDeleted,
25
DiagDescriptors
.PublishedSymbolsCantChange);
74
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.NewSymbolsMustBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
82
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, type.ModifiersAndName));
87
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, method.Member));
92
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, prop.Member));
97
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeDeleted, null, field.Member));
111
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.ExperimentalSymbolsCantBeMarkedObsolete, symbol.Locations.FirstOrDefault(), symbol));
118
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
125
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
133
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
154
context.ReportDiagnostic(Diagnostic.Create(
DiagDescriptors
.NewSymbolsMustBeMarkedExperimental, type.Locations.FirstOrDefault(), type));
158
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);