Skip to content

Commit

Permalink
internal/core/adt: make Conjuncts type ConjunctGroup
Browse files Browse the repository at this point in the history
This prepares for simplifying the Conjunct type.

Signed-off-by: Marcel van Lohuizen <[email protected]>
Change-Id: I18a38b1609c6f76bd02e3187f83564d1f9eb1613
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202772
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Matthew Sackman <[email protected]>
  • Loading branch information
mpvl authored and mvdan committed Dec 8, 2024
1 parent f99441a commit 787d04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/adt/composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ type Vertex struct {
// TODO: all access to Conjuncts should go through functions like
// VisitLeafConjuncts and VisitAllConjuncts. We should probably make this
// an unexported field.
Conjuncts []Conjunct
Conjuncts ConjunctGroup

// Structs is a slice of struct literals that contributed to this value.
// This information is used to compute the topological sort of arcs.
Expand Down Expand Up @@ -312,7 +312,7 @@ func (v *Vertex) cc() *closeContext {
func (v *Vertex) rootCloseContext(ctx *OpContext) *closeContext {
if v._cc == nil {
v._cc = &closeContext{
group: (*ConjunctGroup)(&v.Conjuncts),
group: &v.Conjuncts,
parent: nil,
src: v,
parentConjuncts: v,
Expand Down

0 comments on commit 787d04c

Please sign in to comment.