def finish.at

bolt@1.27.0.0 · src/noqa.bend:130

import bolt@1.27.0.0/src/noqa.bend as Noqa
import Base

130# the codes read, in order, the one still being read included
131def finish.at(ph: Phase, +buf: List<&2, Char>, +acc: List<&2, String>) -> List<&2, String>:
132  match ph:
133    case Before{}:
134      List.reverse(&2, String, acc)
135    case Inside{}:
136      List.reverse(&2, String, word(buf) <> acc)
137    case After{}:
138      List.reverse(&2, String, acc)
139    case Past{}:
140      List.reverse(&2, String, acc)

Uses (6)

Used by (1)