def at_head_bind

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

import bolt@1.27.0.0/src/lsp/semantic.bend as Semantic
import Base
import bolt@1.27.0.0/src/syntax/bind.bend as Bind

85# does the next binder sit at this position?
86def at_head_bind(binds: List<&2, Bind.Bind>, +line: U32, +col: U32) -> Bool:
87  match binds:
88    case Nil{}:
89      False{}
90    case Con{Bind.Bind{n, l, c, k, note}, rest}:
91      Bool.and(U32.is_eq(l, line), U32.is_eq(c, col))

Uses (6)

Used by (1)