Lint.Declarations.declared: def of bend-lint-api@0.2.0.0 Import: import bend-lint-api@0.2.0.0/linter/lint.bend as Lint Lines 704-720 of bend-lint-api@0.2.0.0/linter/lint.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&start_line=704&end_line=720 import Base import bend-lint-api@0.2.0.0/shared/names.bend as Names def Declarations.declared( declares: Maybe<&2, Bool>, +node: Node, uses: Uses ) -> List<&2, Declaration>: match declares node uses: case Some{True{}} _ Uses{sources, globals, binders, imported}: [Declaration{node, Names.Group.get(Node, globals, Node.target(node))}] case Some{False{}} Node{syntax, name, s, k, f} Uses{sources, globals, binders, imported}: Bool.pick( List<&2, Declaration>, String.eq(name, "_"), [], [Declaration{node, Declarations.bound(Syntax.binder(syntax), binders)}] ) case _ _ _: [] Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Declaration https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Declarations.bound 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=Node.target https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Syntax.binder https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Uses https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/names.bend&name=Group.get