Example #1
0
 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));
 }
Example #2
0
 internal static ProjectAnalysisResult Create(Project project)
 {
     return(new ProjectAnalysisResult(SimpleProjectInfo.Create(project)));
 }