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