def score.of
import bend-lint-pack@0.1.1.0/complexity/cyclomatic.bend as Cyclomaticimport Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
67def score.of(body: Maybe<&2, Lint.Node>) -> IO(U32):
68 match body:
69 case None{}:
70 IO.pure(U32, 0)
71 case Some{n}:
72 IO.bind(Tally, U32, walk(n, Tally{0, 0}), t => IO.pure(U32, complexity(t)))