def site
import bolt@1.27.0.0/src/rules/suspicious/thunk.bend as Thunkimport Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
122# the finding when a node and the chain after it open a thunk of a self-call
123def site(hh: Tree.Node, rest: Tree.Node, +name: String, +path: String) -> List<&2, F.Finding>:
124 match hh:
125 case Tree.Leaf{Lex.Tok{kp, +p, _l, _c}}:
126 site.lam(kp, p, rest, name, path)
127 case _other:
128 []