refactor, rename and reducing complexity

This commit is contained in:
2026-04-02 11:55:09 +01:00
parent b64be2a9a1
commit ba55b8e65f
120 changed files with 1134 additions and 1025 deletions
@@ -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,
@@ -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,
@@ -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");
}