def as_open

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:139

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import 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{}

Uses (3)

Used by (2)