Cognitive.walk.step: def of bend-lint-pack@0.1.1.0 Import: import bend-lint-pack@0.1.1.0/complexity/cognitive.bend as Cognitive Lines 53-72 of bend-lint-pack@0.1.1.0/complexity/cognitive.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-pack@0.1.1.0/complexity/cognitive.bend&start_line=53&end_line=72 import Base import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint def walk.step( is_mat: Bool, is_ann: Bool, children: List<&2, Lint.Node>, +depth: U32, +chain: Bool, total: U32 ) -> IO(U32): match is_mat is_ann: case True{} _: walk.arms( children, depth, True{}, U32.add(total, Bool.pick(U32, chain, 0, U32.add(depth, 1))) ) case False{} True{}: walk.all(children, depth, chain, total) case False{} False{}: walk.all(children, Bool.pick(U32, chain, U32.add(depth, 1), depth), False{}, total) Uses (9): 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=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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-pack@0.1.1.0/complexity/cognitive.bend&name=walk.all https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/complexity/cognitive.bend&name=walk.arms https://jend.leeeet.dev/definition.txt?path=bend-lint-pack@0.1.1.0/vendor/lint.bend&name=Node