internal ProjectAnalysisResult(SimpleProjectInfo projectId) : this( projectId, ImmutableArray <DiagnosticInfo> .Empty, ImmutableArray <DiagnosticInfo> .Empty, ImmutableDictionary <DiagnosticAnalyzer, AnalyzerTelemetryInfo> .Empty) { }
internal ProjectAnalysisResult( SimpleProjectInfo projectId, ImmutableArray <DiagnosticInfo> compilerDiagnostics, ImmutableArray <DiagnosticInfo> diagnostics, ImmutableDictionary <DiagnosticAnalyzer, AnalyzerTelemetryInfo> telemetry) { Project = projectId; CompilerDiagnostics = compilerDiagnostics; Diagnostics = diagnostics; Telemetry = telemetry; }
internal static ProjectAnalysisResult Create( Project project, ImmutableArray <Diagnostic> compilerDiagnostics, ImmutableArray <Diagnostic> diagnostics, ImmutableDictionary <DiagnosticAnalyzer, AnalyzerTelemetryInfo> telemetry) { return(new ProjectAnalysisResult( SimpleProjectInfo.Create(project), ImmutableArray.CreateRange(compilerDiagnostics, f => DiagnosticInfo.Create(f)), ImmutableArray.CreateRange(diagnostics, f => DiagnosticInfo.Create(f)), telemetry)); }
internal static ProjectAnalysisResult Create(Project project) { return(new ProjectAnalysisResult(SimpleProjectInfo.Create(project))); }