def as_wrapped

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

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
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

155# a parenthesized call, or nothing
156def as_wrapped(+paren: Bool, kids: Tree.Node) -> Maybe<&2, Lex.Tok>:
157  match paren:
158    case True{}:
159      as_inside(kids)
160    case False{}:
161      None{}

Uses (5)

Used by (1)