EagerBranch.applies: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/eager_branch.bend as EagerBranch Lines 213-225 of bend-lint-rules@0.2.0.0/performance/eager_branch.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/eager_branch.bend&start_line=213&end_line=225 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # Whether a definition's nodes apply a closure, or `found`. def applies(+kids: List<&2, Lint.Node>, found: Bool) -> Bool: match found: case True{}: True{} case False{}: Bool.not( List.is_empty( &2, Unit, Lint.visit(~List<&2, U32>, ~Unit, ~applies.visit, templates(kids, []), kids) ) ) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit 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=visit https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/eager_branch.bend&name=applies.visit https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/eager_branch.bend&name=templates