def opens_brace
import bolt@1.27.0.0/src/lsp/semantic.bend as Semanticimport 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{}