def walk.shape
import bend-lint-pack@0.1.1.0/complexity/cognitive.bend as Cognitiveimport Base
import bend-lint-pack@0.1.1.0/vendor/lint.bend as Lint
74def walk.shape(s: Lint.Shape, depth: U32, chain: Bool, total: U32) -> IO(U32):
75 match s:
76 case Lint.Shape{+kind, name, span, children}:
77 walk.step(String.eq(kind, "Mat"), String.eq(kind, "Ann"), children, depth, chain, total)