Chars.tally: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/perf/chars.bend as Chars Lines 35-44 of bolt@1.27.0.0/src/rules/perf/chars.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/perf/chars.bend&start_line=35&end_line=44 import Base import bolt@1.27.0.0/src/syntax/tree.bend as Tree import bolt@1.27.0.0/src/rules/tokens.bend as T # the character-literal arms among a match's statements def tally(body: Tree.Node, +nn: U32) -> U32: match body: case Tree.NCons{Tree.Stmt{Tree.SCase{}, kids, b}, rest}: +k = literal(T.pattern(kids)) tally(rest, (nn + k : U32)) case Tree.NCons{h, rest}: tally(rest, nn) case other: nn Uses (6): 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=bolt@1.27.0.0/src/rules/perf/chars.bend&name=literal https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/rules/tokens.bend&name=pattern https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=Node https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=StmtKind