pkg: use more go/types logic in code generation
Don't chain callCtxtGetter with adtKind, which caused callCtxtGetter
to have some logic which only existed for the sake of adtKind.
This does mean the two funcs now repeat a few Go types like cue.Value,
but we continue to integrate some more principled logic on go/types.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I82772807fe2e4668329aa9c6047adf73fc17aedd
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201377
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>