def onto.call

bolt@1.27.0.0 · src/rules/suspicious/concat.bend:56

import bolt@1.27.0.0/src/rules/suspicious/concat.bend as Concat
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
import bolt@1.27.0.0/src/rules/calls.bend as Calls

56# a leaf, then a group: the call's append
57def onto.call(hh: Tree.Node, kids: Tree.Node) -> Maybe<&2, Lex.Tok>:
58  match hh:
59    case Tree.Leaf{Lex.Tok{k, +t, l, c}}:
60      appended(t, Calls.args(kids))
61    case other:
62      None{}

Uses (5)

Used by (1)