From ac7e9921d635384cb7f08c167b9020a6e4838a7f Mon Sep 17 00:00:00 2001 From: Marcel van Lohuizen Date: Thu, 29 Apr 2021 08:28:41 +0200 Subject: [PATCH] cue: undeprecate Iterator.Label The necessary functionality for Selector isn't fully there yet. Keep it hidden, though. Change-Id: I7d3f65cba99c489f350978153a4bc0bb8d43d327 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9542 Reviewed-by: CUE cueckoo Reviewed-by: Paul Jolly --- cue/types.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cue/types.go b/cue/types.go index e1e267a85..641bd9c99 100644 --- a/cue/types.go +++ b/cue/types.go @@ -258,11 +258,12 @@ func (i *Iterator) Selector() Selector { return featureToSel(i.f, i.idx) } -// Label reports the label of the value if i iterates over struct fields and -// "" otherwise. +// Label reports the label of the value if i iterates over struct fields and "" +// otherwise. +// // -// Deprecated: use i.Selector().String(). Note that this will give more accurate -// string representations. +// Slated to be deprecated: use i.Selector().String(). Note that this will give +// more accurate string representations. func (i *hiddenIterator) Label() string { if i.f == 0 { return ""