refactor, rename and reducing complexity
This commit is contained in:
+1
@@ -6,6 +6,7 @@ import p.studio.compiler.source.tables.FileTableReader;
|
||||
import java.util.List;
|
||||
|
||||
public record AnalysisSnapshot(
|
||||
FrontendSpec frontendSpec,
|
||||
List<BuildingIssue> diagnostics,
|
||||
ResolvedWorkspace resolvedWorkspace,
|
||||
FileTableReader fileTable,
|
||||
|
||||
+1
@@ -59,6 +59,7 @@ public class BuilderPipelineService {
|
||||
final LogAggregator logs) {
|
||||
final var diagnostics = run(ctx, logs, analyses, new ArrayList<>());
|
||||
return new AnalysisSnapshot(
|
||||
ctx.resolvedWorkspace.frontendSpec(),
|
||||
diagnostics,
|
||||
ctx.resolvedWorkspace,
|
||||
ctx.fileTable,
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ class BuilderPipelinePublicSurfaceTest {
|
||||
@Test
|
||||
void analysisSnapshotMustExposeMinimumSharedContract() {
|
||||
assertEquals(
|
||||
Set.of("diagnostics", "resolvedWorkspace", "fileTable", "irBackend"),
|
||||
Set.of("frontendSpec", "diagnostics", "resolvedWorkspace", "fileTable", "irBackend"),
|
||||
recordComponentNames(AnalysisSnapshot.class),
|
||||
"analysis snapshot must expose the minimum shared contract");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user