public ReportingContext(CompilationAnalysisContext context, Diagnostic diagnostic)
 {
     SyntaxTree  = context.GetFirstSyntaxTree();
     Compilation = context.Compilation;
     Diagnostic  = diagnostic;
     this.contextSpecificReport = context.ReportDiagnostic;
 }
Exemple #2
0
 public ReportingContext(CompilationAnalysisContext context, Diagnostic diagnostic)
     : this(diagnostic, context.ReportDiagnostic, context.Compilation, context.GetFirstSyntaxTree())
 {
 }