Compile a format in format.go

This commit is contained in:
2026-09-29 15:27:21 +02:00
committed by Lillem4n
parent c2ac7bf843
commit ba43eb1c91
3 changed files with 10 additions and 13 deletions
-10
View File
@@ -227,16 +227,6 @@ func (t *template) fixedText() (string, bool) {
return "", false
}
// compileFormat compiles a format into ops, and applies the fences that need the
// compiled reads.
func compileFormat(toks []formatToken, refs map[string]refBinding) (formatOps, error) {
c := compileOps(toks, refs)
if err := checkNoOverlap(c); err != nil {
return c, err
}
return c, checkNoRepeatedRead(c)
}
func compileChoice(items []any, pos position) (node, error) {
itemPos := inFormat
if pos == inColumn {