Gather the pick key's load and render sides in pick.go, and name each thing for what it is

This commit is contained in:
2026-10-09 10:54:35 +02:00
committed by Lillem4n
parent ee4b40bd25
commit 0002efb9d4
20 changed files with 202 additions and 227 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ func readField(s *drawstate.State, t *template, env renderEnv, a arm) readValue
switch {
case a.kind == namedRead:
return readName(s, env, a)
case env.pick != nil && !grammar.IsRef(a.head) && env.keeps(a):
case keptInPick(env, a):
return readUnder(s, t, env, a)
}
env.pick = nil