18 references to ReportDiagnostic
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (2)
44ReportDiagnostics(declDiagnostics, context.ReportDiagnostic, IsSourceLocation, s_declaration); 45ReportDiagnostics(bodyDiagnostics, context.ReportDiagnostic, IsSourceLocation);
Microsoft.CodeAnalysis.CodeStyle (2)
AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
85context.ReportDiagnostic(diagnostic);
SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
300context.ReportDiagnostic(diagnostic);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
307context.ReportDiagnostic(diagnostic);
CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
115context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( 133context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
Microsoft.CodeAnalysis.CSharp.Features (3)
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (1)
307context.ReportDiagnostic(diagnostic);
CSharpRemoveUnreachableCodeDiagnosticAnalyzer.cs (2)
115context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( 133context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
1254context.RegisterSemanticModelAction(c => c.ReportDiagnostic(Diagnostic.Create(s_semanticRule, c.SemanticModel.SyntaxTree.GetRoot().GetLocation()))); 1270context.RegisterSemanticModelAction(c => c.ReportDiagnostic(Diagnostic.Create(s_semanticRule, c.SemanticModel.SyntaxTree.GetRoot().GetLocation())));
Microsoft.CodeAnalysis.Features (5)
AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
85context.ReportDiagnostic(diagnostic);
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDetectionAnalyzer.cs (1)
94context.ReportDiagnostic(DiagnosticHelper.Create(
EmbeddedLanguages\Json\LanguageServices\AbstractJsonDiagnosticAnalyzer.cs (1)
80context.ReportDiagnostic(DiagnosticHelper.Create(
EmbeddedLanguages\RegularExpressions\LanguageServices\AbstractRegexDiagnosticAnalyzer.cs (1)
89context.ReportDiagnostic(DiagnosticHelper.Create(
SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
300context.ReportDiagnostic(diagnostic);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
2620context.RegisterSemanticModelAction(context => HandleCallback(context.SemanticModel.SyntaxTree.GetRoot().GetLocation(), context.SemanticModel.Compilation, context.ReportDiagnostic, context.CancellationToken));