27 references to ReportDiagnostic
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
SourceGeneration\GeneratorDriverTests.cs (17)
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))); 1367c.ReportDiagnostic(d); 3814ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 3844ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 3939ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 3968ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create( 4030ctx.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
586context.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.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
101context.ReportDiagnostic(Diagnostic.Create(diagnostic, location: null));
Microsoft.Gen.MetadataExtractor (5)
MetadataReportsGenerator.cs (2)
90context.ReportDiagnostic(Diagnostic.Create(diagnostic, location: null)); 123var meteringParser = new Metrics.Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
101context.ReportDiagnostic(Diagnostic.Create(diagnostic, location: null));
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (2)
64context.ReportDiagnostic(Diagnostic.Create(diagnostic, location: null)); 68var meteringParser = new Metrics.Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken);
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (2)
64context.ReportDiagnostic(Diagnostic.Create(diagnostic, location: null)); 68var meteringParser = new Metrics.Parser(context.Compilation, context.ReportDiagnostic, context.CancellationToken);