ForwardReference.places: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/language/forward_reference.bend as ForwardReference Lines 37-49 of bend-lint-rules@0.2.0.0/language/forward_reference.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/language/forward_reference.bend&start_line=37&end_line=49 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # Where each definition among `nodes`, the file's, is, from `at`, onto `out`. def places( nodes: List<&2, Lint.Node>, +at: U32, out: Map<&2, Maybe<&2, Place>> ) -> Map<&2, Maybe<&2, Place>>: match nodes: case Nil{}: out case Con{Lint.Node{Lint.Definition{t, u}, name, s, k, f}, rest}: places(rest, (at + 1: U32), Map.set(&2, Maybe<&2, Place>, out, t, Some{Place{at, name}})) case Con{node, rest}: places(rest, (at + 1: U32), out) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Map.set https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Syntax https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/language/forward_reference.bend&name=Place