DeepCallInFork.is_inside: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend as DeepCallInFork Lines 157-165 of bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/deep_call_in_fork.bend&start_line=157&end_line=165 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # Whether `x`, below `path`, or a node above it, is a value of a fork, or `found`. def is_inside(path: List<&2, Lint.Above>, x: Lint.Node, found: Bool) -> Bool: match path found: case _ True{}: True{} case Nil{} False{}: False{} case Con{Lint.Above{+p, at}, rest} False{}: is_inside(rest, p, is_value(x, p, at)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Above 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-rules@0.2.0.0/performance/deep_call_in_fork.bend&name=is_value