package p.studio.compiler.models;

import p.studio.compiler.source.identifiers.ProjectId;
import p.studio.utilities.structures.ReadOnlyList;

public class BuildStack {
    public final ReadOnlyList<ProjectId> topologicalOrder;
    public final ReadOnlyList<ProjectId> reverseTopologicalOrder;

    public BuildStack(final ReadOnlyList<ProjectId> topologicalOrder) {
        this.topologicalOrder = topologicalOrder;
        this.reverseTopologicalOrder = topologicalOrder.invert();
    }
}
