def render_close

bolt@1.27.0.0 · src/syntax/bind.bend:304

import bolt@1.27.0.0/src/syntax/bind.bend as Bind
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

304# a group's close bracket, "" when it never closed
305def render_close(close: Maybe<&2, Lex.Tok>) -> String:
306  match close:
307    case None{}:
308      ""
309    case Some{Lex.Tok{k, t, l, c}}:
310      t

Uses (3)

Used by (2)