24 references to ReportDiagnostic
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (2)
60context.ReportDiagnostic(Diagnostic.Create( 103context.ReportDiagnostic(Diagnostic.Create(
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
121context.ReportDiagnostic(Diagnostic.Create(
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (2)
44ReportDiagnostics(declDiagnostics, context.ReportDiagnostic, IsSourceLocation, s_declaration); 45ReportDiagnostics(bodyDiagnostics, context.ReportDiagnostic, IsSourceLocation);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
112context.ReportDiagnostic(diagnostic);
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
299context.ReportDiagnostic(diagnostic);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
320context.ReportDiagnostic(diagnostic);
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
123context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( 142context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
320context.ReportDiagnostic(diagnostic);
src\Analyzers\CSharp\Analyzers\RemoveUnreachableCode\CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
123context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( 142context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (1)
1202context.ReportDiagnostic(Diagnostic.Create(Descriptor, decl.GetLocation()));
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
924context.RegisterSemanticModelAction(c => c.ReportDiagnostic(Diagnostic.Create(s_semanticRule, c.SemanticModel.SyntaxTree.GetRoot().GetLocation()))); 940context.RegisterSemanticModelAction(c => c.ReportDiagnostic(Diagnostic.Create(s_semanticRule, c.SemanticModel.SyntaxTree.GetRoot().GetLocation())));
Microsoft.CodeAnalysis.Features (4)
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
94context.ReportDiagnostic(DiagnosticHelper.Create(
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDiagnosticAnalyzer.cs (1)
78context.ReportDiagnostic(DiagnosticHelper.Create(
EmbeddedLanguages\RegularExpressions\LanguageServices\AbstractRegexDiagnosticAnalyzer.cs (1)
90context.ReportDiagnostic(DiagnosticHelper.Create(
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
112context.ReportDiagnostic(diagnostic);
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
1106context.ReportDiagnostic( 2745ReportDiagnosticsInAllTrees("RegisterSemanticModelAction", semanticModelContext.SemanticModel.SyntaxTree, semanticModelContext.SemanticModel.Compilation, semanticModelContext.ReportDiagnostic)); 2946context.RegisterSemanticModelAction(context => HandleCallback(context.SemanticModel.SyntaxTree.GetRoot().GetLocation(), context.SemanticModel.Compilation, context.ReportDiagnostic, context.CancellationToken));
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendAnalyzer.cs (1)
111context.ReportDiagnostic(diagnostic);