def check.open_text

bolt@1.27.0.0 · src/rules/style/wrap.bend:125

import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrap
import Base

125# an opening bracket, as the depth it raises; ANone when it is not one
126def check.open_text(+tx: String) -> Act:
127  Bool.pick(Act, String.eq(tx, "("), AParen{},
128    Bool.pick(Act, String.eq(tx, "["), ABrack{},
129      Bool.pick(Act, String.eq(tx, "{"), ABrace{}, ANone{})))

Uses (4)

Used by (1)