24 references to ReportDiagnostic
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
SourceGeneration\GeneratorDriverTests.cs (16)
436var generator = new CallbackGenerator((ic) => { }, (sgc) => sgc.ReportDiagnostic(diagnostic)); 670var generator = new CallbackGenerator((ic) => { }, (sgc) => { sgc.ReportDiagnostic(diagnostic1); sgc.ReportDiagnostic(diagnostic2); }); 671var generator2 = new CallbackGenerator2((ic) => { }, (sgc) => { sgc.ReportDiagnostic(diagnostic3); }); 717var generator = new CallbackGenerator((ic) => { }, (sgc) => { sgc.ReportDiagnostic(diagnostic1); sgc.ReportDiagnostic(diagnostic2); }); 718var generator2 = new CallbackGenerator2((ic) => { }, (sgc) => { sgc.ReportDiagnostic(diagnostic3); }); 1164c.ReportDiagnostic(CSDiagnostic.Create("GEN001", "generators", "message", DiagnosticSeverity.Warning, DiagnosticSeverity.Warning, true, 2)); 1165c.ReportDiagnostic(CSDiagnostic.Create("GEN002", "generators", "message", DiagnosticSeverity.Warning, DiagnosticSeverity.Warning, true, 3)); 1267c.ReportDiagnostic(d); 1271c.ReportDiagnostic(d.WithLocation(Location.Create(c.Compilation.SyntaxTrees.First(), l))); 3682ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 3712ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 3807ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 3836ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 3898ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
614context.ReportDiagnostic(Diagnostic.Create(s_descriptor, tree.GetLocation(new TextSpan(0, 1))));
Microsoft.CodeAnalysis.Test.Utilities (1)
SourceGeneration\TestGenerators.cs (1)
69context.ReportDiagnostic(Diagnostic.Create(Descriptor, _produceLocation(context)));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
SourceGeneration\GeneratorDriverTests.vb (2)
673c.ReportDiagnostic(diag) 711c.ReportDiagnostic(d)
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Roslyn3.11.cs (1)
32var p = new Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken);
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
101context.ReportDiagnostic(Diagnostic.Create(diagnostic, location: null));
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (2)
53var meteringParser = new Metrics.Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken); 80context.ReportDiagnostic(Diagnostic.Create(diagnostic, location: null));