Split the picks and the name fences out of name.go, state the repeat refusal and the naming rule where they hold, and draw a memo's variants one way
This commit is contained in:
@@ -187,8 +187,7 @@ func readField(s *generatorState, t *template, hold *drawMemo, sc renderScope, a
|
||||
sc.pick = nil
|
||||
switch {
|
||||
case a.kind == freshRead && isRef(a.head):
|
||||
sc.base = sc.draws.depth()
|
||||
return readValue{text: render(s, t.head(a.head), sc)}
|
||||
return readValue{text: render(s, t.head(a.head), sc.entering())}
|
||||
case a.kind == freshRead:
|
||||
return readValue{text: render(s, t.head(a.head), sc)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user