diff --git a/internal/pkg/context.go b/internal/pkg/context.go index db68b6007..567d79f54 100644 --- a/internal/pkg/context.go +++ b/internal/pkg/context.go @@ -79,7 +79,7 @@ func (c *CallCtxt) Struct(i int) Struct { switch v, ok := x.(*adt.Vertex); { case ok && !v.IsList(): v.CompleteArcs(c.ctx) - return Struct{c.ctx, v} + return Struct{v} case v != nil: x = v.Value() @@ -302,7 +302,7 @@ func (c *CallCtxt) CueList(i int) List { if v == nil { return List{} } - return List{c.ctx, v, v.BaseValue.(*adt.ListMarker).IsOpen} + return List{v, v.BaseValue.(*adt.ListMarker).IsOpen} } func (c *CallCtxt) Iter(i int) (a cue.Iterator) { diff --git a/internal/pkg/types.go b/internal/pkg/types.go index 63fc40923..d60f79ec8 100644 --- a/internal/pkg/types.go +++ b/internal/pkg/types.go @@ -27,9 +27,8 @@ type Schema = cue.Value // List represents a CUE list, which can be open or closed. type List struct { - runtime adt.Runtime - node *adt.Vertex - isOpen bool + node *adt.Vertex + isOpen bool } // Elems returns the elements of a list. @@ -44,8 +43,7 @@ func (l *List) IsOpen() bool { // Struct represents a CUE struct, which can be open or closed. type Struct struct { - runtime adt.Runtime - node *adt.Vertex + node *adt.Vertex } // Arcs returns all arcs of s.