def opens_brace

bolt@1.27.0.0 · src/lsp/semantic.bend:343

import bolt@1.27.0.0/src/lsp/semantic.bend as Semantic
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

343# does the token list start with `{`?
344def opens_brace(toks: List<&2, Lex.Tok>) -> Bool:
345  match toks:
346    case Con{Lex.Tok{k, +t, l, c}, rest}:
347      String.eq(t, "{")
348    case Nil{}:
349      False{}

Uses (4)

Used by (1)