def at_head_use

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

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

93# does the next use sit at this position?
94def at_head_use(uses: List<&2, Bind.Use>, +line: U32, +col: U32) -> Bool:
95  match uses:
96    case Nil{}:
97      False{}
98    case Con{Bind.Use{n, l, c, tg}, rest}:
99      Bool.and(U32.is_eq(l, line), U32.is_eq(c, col))

Uses (6)

Used by (1)