42 references to ReportDiagnostic
Microsoft.Analyzers.Local (11)
ApiLifecycle\ApiLifecycleAnalyzer.cs (11)
76context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.NewSymbolsMustBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
84context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantBeDeleted, null, type.ModifiersAndName));
89context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantBeDeleted, null, method.Member));
94context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantBeDeleted, null, prop.Member));
99context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantBeDeleted, null, field.Member));
113context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.ExperimentalSymbolsCantBeMarkedObsolete, symbol.Locations.FirstOrDefault(), symbol));
120context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
127context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
135context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
156context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.NewSymbolsMustBeMarkedExperimental, type.Locations.FirstOrDefault(), type));
160context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.ExperimentalSymbolsCantBeMarkedObsolete, type.Locations.FirstOrDefault(), type));
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (19)
Diagnostics\CommonDiagnosticAnalyzers.cs (16)
77context.ReportDiagnostic(Diagnostic.Create(Descriptor2, Location.None, s_properties)));
564compilationContext.ReportDiagnostic(Diagnostic.Create(EnabledRule, Location.None));
567compilationContext.ReportDiagnostic(Diagnostic.Create(DisabledRule, Location.None));
825compilationContext.ReportDiagnostic(Diagnostic.Create(Descriptor, Location.None)));
856compilationContext.ReportDiagnostic(Diagnostic.Create(Descriptor, Location.None)));
877compilationContext.ReportDiagnostic(Diagnostic.Create(Descriptor, Location.None)));
966cc.RegisterCompilationEndAction(c => ReportDiagnostic(c.ReportDiagnostic, ActionKind.CompilationEnd));
976context.RegisterCompilationAction(cc => ReportDiagnostic(cc.ReportDiagnostic, ActionKind.Compilation));
1081context.ReportDiagnostic(Diagnostic.Create(Descriptor, tree.GetRoot().GetLocation()));
1654endContext.ReportDiagnostic(diagnostic);
1707compilationEndContext.ReportDiagnostic(diagnostic);
1839endContext.ReportDiagnostic(diagnostic);
2034compilationEndContext.ReportDiagnostic(Diagnostic.Create(SymbolStartedEndedDifferRule, Location.None, symbolsStartedStr, symbolsEndedStr, _analyzerId));
2039compilationEndContext.ReportDiagnostic(diagnostic);
2454compilationEndContext => compilationEndContext.ReportDiagnostic(
2486compilationContext.ReportDiagnostic(Diagnostic.Create(Descriptor, Location.None)));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.DotNet.CodeAnalysis (1)