def use
bend-lint-rules@0.2.0.0 · language/forward_reference.bend:83
import bend-lint-rules@0.2.0.0/language/forward_reference.bend as ForwardReference
import Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
import bend-lint-api@0.2.0.0/shared/names.bend as Names
83def use(+user: User, +path: List<&2, Lint.Above>, +node: Lint.Node) -> List<&2, Lint.Finding>:
84 match node:
85 case Lint.Node{Lint.Reference{t}, n, span, k, f}:
86 judged(path, Names.find(Place, User.places(user), t), user, span)
87 case _:
88 []