def as_open
import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalkimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
139# the chain is exactly one call
140def as_open(+open: Bool, tok: Lex.Tok) -> Maybe<&2, Lex.Tok>:
141 match open:
142 case True{}:
143 Some{tok}
144 case False{}:
145 None{}