19 references to ReportDiagnostic
Microsoft.CodeAnalysis.CodeStyle (3)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
527_symbolStartAnalyzer.ReportUnusedParameterDiagnostic(unusedParameter, hasReference, context.ReportDiagnostic, context.Options, cancellationToken: context.CancellationToken); 542context.ReportDiagnostic(diagnostic);
UseSystemHashCodeDiagnosticAnalyzer.cs (1)
75context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
114context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
106context.ReportDiagnostic(Diagnostic.Create(rule, local.Locations[0]));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
929blockEndContext.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(DescriptorForBlockEnd, operationBlock.Syntax.GetLocation()));
Microsoft.CodeAnalysis.CSharp.Features (1)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
114context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.Features (3)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
527_symbolStartAnalyzer.ReportUnusedParameterDiagnostic(unusedParameter, hasReference, context.ReportDiagnostic, context.Options, cancellationToken: context.CancellationToken); 542context.ReportDiagnostic(diagnostic);
UseSystemHashCodeDiagnosticAnalyzer.cs (1)
75context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.Test.Utilities (8)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
885oc.RegisterOperationBlockEndAction(c => ReportDiagnostic(c.ReportDiagnostic, ActionKind.OperationBlockEnd)); 1225blockStartContext.RegisterOperationBlockEndAction(c => ReportDiagnostic(c.ReportDiagnostic, c.OwningSymbol.Locations[0])); 1234ReportDiagnostic(blockContext.ReportDiagnostic, blockContext.OwningSymbol.Locations[0]); 1283c.ReportDiagnostic(diagnostic); 1317AnalyzerFieldReferenceOperation(operation, operationBlockAnalysisContext.ReportDiagnostic); 2399endContext => endContext.ReportDiagnostic(Diagnostic.Create(s_descriptor, context.OwningSymbol.Locations[0])));
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
295context.ReportDiagnostic(Diagnostic.Create(descriptor, local.Locations.FirstOrDefault(), local, moreSpecificType));
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
135context.ReportDiagnostic(Diagnostic.Create(descriptor, local.Locations.FirstOrDefault()));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\GetDiagnosticsTests.vb (1)
646context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(DescriptorForBlockEnd, operationBlock.Syntax.GetLocation()))