def check.after

bolt@1.27.0.0 · src/rules/style/doc.bend:45

import bolt@1.27.0.0/src/rules/style/doc.bend as Doc
import Base

45# reading down, does a comment block end right above the next line? After a
46# comment line (its first char `#`) it does; an attribute line (`@unsafe`)
47# keeps what was above it; any other line ends it
48def check.after(+hh: String, ok: Bool) -> Bool:
49  Bool.or(String.starts_with(hh, "#"), Bool.and(String.starts_with(hh, "@"), ok))

Uses (5)

Used by (1)