def mark_slot

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:181

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import bolt@1.27.0.0/src/rules/calls.bend as Calls

181# the collection argument's call, when this is a narrow accessor
182def mark_slot(ss: Slot, +as: List<&2, Tree.Node>) -> List<&2, Pos>:
183  Slot{on, at} = ss
184  match on:
185    case False{}:
186      Nil{}
187    case True{}:
188      pos_of(as_call(Calls.arg(as, at)))

Uses (8)

Used by (1)