def indexed

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

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

420# the rest of the chain indexes the call
421def indexed(rest: Tree.Node) -> Bool:
422  match rest:
423    case Tree.NCons{Tree.Group{Lex.Tok{k, +o, l, c}, kids, close}, tail}:
424      String.eq(o, "[")
425    case other:
426      False{}

Uses (4)

Used by (1)