all: make use of stringer in more places
This replaces about 100 lines of manually maintained code
with about 190 lines of automatically generated code with stringer.
The strings are now the constant names themselves, or in the case
of `stringer -linecomment`, in inline comments following the names.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I90e0463fcf82ebe2d6cfd43f90aed4442f71eb16
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199854
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>