def Declarations.bound

bend-lint-api@0.2.0.0 · linter/lint.bend:690

import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
import Base
import bend-lint-api@0.2.0.0/shared/tables.bend as Tables

690def Declarations.bound(
691  binder: Maybe<&2, U32>,
692  binders: Tables.Table<List<&2, Node>>
693) -> List<&2, Node>:
694  match binder:
695    case Some{b}:
696      List.reverse(
697        &2,
698        Node,
699        Maybe.default(&2, List<&2, Node>, Tables.Table.get(List<&2, Node>, binders, b), [])
700      )
701    case None{}:
702      []

Uses (8)

Used by (1)