MissedFork.is_choice: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/missed_fork.bend as MissedFork Lines 49-56 of bend-lint-rules@0.2.0.0/performance/missed_fork.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/missed_fork.bend&start_line=49&end_line=56 import Base import bend-lint-api@0.2.0.0/linter/lint.bend as Lint # Whether an application's nodes call Bool.pick, Bool.and or Bool.or: its arguments are alternatives, each an # expression of its own. def is_choice(kids: List<&2, Lint.Node>) -> Bool: match kids: case Con{Lint.Node{Lint.Reference{t}, n, s, k, f}, rest}: List.contains(~String, ~String.eq, ["Bool.pick", "Bool.and", "Bool.or"], t) case _: False{} Uses (7): 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=Base/base.bend&name=List.contains https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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=Node https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/linter/lint.bend&name=Syntax