def opens

bolt@1.27.0.0 · src/syntax/tree.bend:90

import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

90# is it a group opened by this bracket?
91def opens(nn: Node, +ss: String) -> Bool:
92  match nn:
93    case Group{Lex.Tok{k, t, l, c}, kids, close}:
94      String.eq(t, ss)
95    case other:
96      False{}

Uses (5)

Used by (2)