12 references to ReportDiagnostic
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
246
context.
ReportDiagnostic
(diagnostic);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
784
context.
ReportDiagnostic
(CodeAnalysis.Diagnostic.Create(Descriptor1, Location.None));
Diagnostics\GetDiagnosticsTests.cs (1)
971
blockEndContext.
ReportDiagnostic
(CodeAnalysis.Diagnostic.Create(DescriptorForBlockEnd, blockEndContext.CodeBlock.GetLocation()));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Diagnostics\DiagnosticServiceTests.vb (2)
1702
context.
ReportDiagnostic
(Diagnostic.Create(Descriptor, context.CodeBlock.GetLocation))
1724
context.
ReportDiagnostic
(Diagnostic.Create(Descriptor, context.CodeBlock.GetLocation))
Microsoft.CodeAnalysis.Test.Utilities (7)
Diagnostics\CommonDiagnosticAnalyzers.cs (5)
610
codeBlockContext.
ReportDiagnostic
(Diagnostic.Create(CodeBlockTopLevelRule, codeBlockContext.OwningSymbol.Locations[0], codeBlockContext.OwningSymbol.Name));
619
codeBlockContext.
ReportDiagnostic
(Diagnostic.Create(CodeBlockPerCompilationRule, codeBlockContext.OwningSymbol.Locations[0], codeBlockContext.OwningSymbol.Name));
965
cc.RegisterCodeBlockAction(c => ReportDiagnostic(c.
ReportDiagnostic
, ActionKind.CodeBlock));
2801
ReportDiagnostics("RegisterCodeBlockAction", codeBlockContext.CodeBlock.SyntaxTree, codeBlockContext.OwningSymbol, codeBlockContext.
ReportDiagnostic
));
2812
ReportDiagnostics("RegisterCodeBlockEndAction", codeBlockEndContext.CodeBlock.SyntaxTree, codeBlockEndContext.OwningSymbol, codeBlockEndContext.
ReportDiagnostic
));
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (2)
154
context.
ReportDiagnostic
(CodeAnalysis.Diagnostic.Create(s_rule, context.OwningSymbol.Locations.First(), messageArgs: context.OwningSymbol.Name + ":end"));
173
context.
ReportDiagnostic
(CodeAnalysis.Diagnostic.Create(s_rule, context.OwningSymbol.Locations.First(), messageArgs: context.OwningSymbol.Name + ":end"));