def Def.called.visit

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

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

916# The definition an application below `path` calls by name.
917def Def.called.visit(+u: Unit, +path: List<&2, Above>, +node: Node) -> List<&2, String>:
918  match node:
919    case Node{Application{}, n, s, Con{Node{Reference{t}, rn, rs, rk, rf}, args}, f}:
920      [t]
921    case _:
922      []

Uses (6)

Used by (1)