55 references to ReportDiagnostic
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (1)
36ReportDiagnostics(diagnostics, context.ReportDiagnostic, IsSourceLocation, s_syntactic);
Microsoft.CodeAnalysis.CodeStyle (7)
AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
105context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractFileHeaderDiagnosticAnalyzer.cs (2)
61context.ReportDiagnostic(Diagnostic.Create(s_missingHeaderDescriptor, fileHeader.GetLocation(tree))); 68context.ReportDiagnostic(Diagnostic.Create(s_invalidHeaderDescriptor, fileHeader.GetLocation(tree)));
AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
76context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractOrderModifiersDiagnosticAnalyzer.cs (2)
72context.ReportDiagnostic( 80context.ReportDiagnostic(
FormattingAnalyzerHelper.cs (1)
66context.ReportDiagnostic(Diagnostic.Create(
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
73context.ReportDiagnostic(DiagnosticHelper.Create(
ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
77context.ReportDiagnostic(DiagnosticHelper.Create(
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
79context.ReportDiagnostic(DiagnosticHelper.Create(
ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
87context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
72context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
61context.ReportDiagnostic(Diagnostic.Create(Descriptor, directive.GetLocation()));
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
73context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
237=> context.ReportDiagnostic(Diagnostic.Create(s_syntaxDiagnosticDescriptor, context.Tree.GetRoot().GetFirstToken().GetLocation())); 356=> context.ReportDiagnostic(Diagnostic.Create(Descriptor, Location.Create(context.Tree, TextSpan.FromBounds(1000, 2000))));
Microsoft.CodeAnalysis.CSharp.Features (7)
ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
73context.ReportDiagnostic(DiagnosticHelper.Create(
ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
77context.ReportDiagnostic(DiagnosticHelper.Create(
ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
79context.ReportDiagnostic(DiagnosticHelper.Create(
ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
87context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
72context.ReportDiagnostic(DiagnosticHelper.Create(
CSharpRemoveRedundantNullableDirectiveDiagnosticAnalyzer.cs (1)
61context.ReportDiagnostic(Diagnostic.Create(Descriptor, directive.GetLocation()));
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
73context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
Diagnostics\AbstractSuppressionAllCodeTests.cs (1)
171context.ReportDiagnostic(Diagnostic.Create(_descriptor, node.GetLocation()));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (7)
CodeFixes\CodeFixServiceTests.cs (1)
508c.ReportDiagnostic(Diagnostic.Create(descriptor, c.Tree.GetLocation(TextSpan.FromBounds(0, 0))));
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
1253context.RegisterSyntaxTreeAction(c => c.ReportDiagnostic(Diagnostic.Create(s_syntaxRule, c.Tree.GetRoot().GetLocation()))); 1269context.RegisterSyntaxTreeAction(c => c.ReportDiagnostic(Diagnostic.Create(s_syntaxRule, c.Tree.GetRoot().GetLocation()))); 1282=> context.RegisterSyntaxTreeAction(c => c.ReportDiagnostic(Diagnostic.Create(s_syntaxRule, c.Tree.GetRoot().GetLocation())));
Diagnostics\DiagnosticsClassificationTaggerProviderTests.cs (2)
97c.ReportDiagnostic(DiagnosticHelper.Create( 110c.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
Diagnostics\DiagnosticsSquiggleTaggerProviderTests.cs (1)
229c.ReportDiagnostic(Diagnostic.Create(_rule, Location.Create(c.Tree, new TextSpan(0, 1))));
Microsoft.CodeAnalysis.Features (7)
AbstractConsecutiveStatementPlacementDiagnosticAnalyzer.cs (1)
105context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractFileHeaderDiagnosticAnalyzer.cs (2)
61context.ReportDiagnostic(Diagnostic.Create(s_missingHeaderDescriptor, fileHeader.GetLocation(tree))); 68context.ReportDiagnostic(Diagnostic.Create(s_invalidHeaderDescriptor, fileHeader.GetLocation(tree)));
AbstractMultipleBlankLinesDiagnosticAnalyzer.cs (1)
76context.ReportDiagnostic(DiagnosticHelper.Create(
AbstractOrderModifiersDiagnosticAnalyzer.cs (2)
72context.ReportDiagnostic( 80context.ReportDiagnostic(
FormattingAnalyzerHelper.cs (1)
66context.ReportDiagnostic(Diagnostic.Create(
Microsoft.CodeAnalysis.Test.Utilities (11)
Diagnostics\CommonDiagnosticAnalyzers.cs (9)
71context.ReportDiagnostic(Diagnostic.Create(Descriptor1, location, s_properties)); 818c.ReportDiagnostic(Diagnostic.Create(Descriptor, SourceLocation.Create(c.Tree, _badSpan))); 889context.RegisterSyntaxTreeAction(c => ReportDiagnostic(c.ReportDiagnostic, ActionKind.SyntaxTree)); 1433ReportTreeDiagnostics(treeContext.Tree, treeContext.ReportDiagnostic); 1714treeContext.ReportDiagnostic(diagnostic); 1718treeContext.ReportDiagnostic(diagnostic); 2432context.ReportDiagnostic(Diagnostic.Create(Descriptor, variable.Identifier.GetLocation())); 2526context.ReportDiagnostic(Diagnostic.Create(s_descriptor, context.Tree.GetRoot().GetLocation())); 2608context.RegisterSyntaxTreeAction(syntaxContext => HandleCallback(syntaxContext.Tree.GetRoot().GetLocation(), context.Compilation, syntaxContext.ReportDiagnostic, syntaxContext.CancellationToken));
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (2)
213context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, comment.GetLocation(), messageArgs: comment.ToFullString())); 248context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, nodeOrToken.GetLocation(), messageArgs: nodeOrToken.ToString()));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
62context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.VisualBasic.Features (1)
VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
62context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (1)
111c.ReportDiagnostic(Diagnostic.Create(descriptor, c.Tree.GetLocation(TextSpan.FromBounds(0, 0))));
Roslyn.VisualStudio.Next.UnitTests (2)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (2)
295c.ReportDiagnostic(Diagnostic.Create(_supportedDiagnostics[0], c.Tree.GetLocation(TextSpan.FromBounds(0, 1)))); 313c.ReportDiagnostic(Diagnostic.Create(_supportedDiagnostics[0], c.Tree.GetLocation(TextSpan.FromBounds(0, 1))));