Skip to content

Commit

Permalink
internal/core/adt: move Label for better bin packing
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel van Lohuizen <[email protected]>
Change-Id: Ib16783b29a4efb6946d65fd8759b145269e2f634
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/542675
Reviewed-by: Roger Peppe <[email protected]>
Unity-Result: CUEcueckoo <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
  • Loading branch information
mpvl committed Aug 25, 2022
1 parent 9e15ca1 commit e398e10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/core/adt/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ type Vertex struct {
// tree.
Parent *Vertex

// Label is the feature leading to this vertex.
Label Feature

// State:
// eval: nil, BaseValue: nil -- unevaluated
// eval: *, BaseValue: nil -- evaluating
Expand All @@ -150,6 +147,9 @@ type Vertex struct {
state *nodeContext
// TODO: move the following status fields to nodeContext.

// Label is the feature leading to this vertex.
Label Feature

// status indicates the evaluation progress of this vertex.
status VertexStatus

Expand Down

0 comments on commit e398e10

Please sign in to comment.