def check.close_text

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

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

139# a closing bracket, as the depth it lowers; ANone when it is not one
140def check.close_text(+tx: String) -> Act:
141  Bool.pick(Act, String.eq(tx, ")"), AUnparen{},
142    Bool.pick(Act, String.eq(tx, "]"), AUnbrack{},
143      Bool.pick(Act, String.eq(tx, "}"), AUnbrace{}, ANone{})))

Uses (4)

Used by (1)