Exemple #1
0
 internal ProjectAnalysisResult(SimpleProjectInfo projectId)
     : this(
         projectId,
         ImmutableArray <DiagnosticInfo> .Empty,
         ImmutableArray <DiagnosticInfo> .Empty,
         ImmutableDictionary <DiagnosticAnalyzer, AnalyzerTelemetryInfo> .Empty)
 {
 }
Exemple #2
0
 internal ProjectAnalysisResult(
     SimpleProjectInfo projectId,
     ImmutableArray <DiagnosticInfo> compilerDiagnostics,
     ImmutableArray <DiagnosticInfo> diagnostics,
     ImmutableDictionary <DiagnosticAnalyzer, AnalyzerTelemetryInfo> telemetry)
 {
     Project             = projectId;
     CompilerDiagnostics = compilerDiagnostics;
     Diagnostics         = diagnostics;
     Telemetry           = telemetry;
 }
Exemple #3
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));
 }
Exemple #4
0
 internal static ProjectAnalysisResult Create(Project project)
 {
     return(new ProjectAnalysisResult(SimpleProjectInfo.Create(project)));
 }