Concat.uses: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/suspicious/concat.bend as Concat Lines 261-273 of bolt@1.27.0.0/src/rules/suspicious/concat.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/suspicious/concat.bend&start_line=261&end_line=273 import Base import bolt@1.27.0.0/src/syntax/lex.bend as Lex import bolt@1.27.0.0/src/syntax/tree.bend as Tree # how many times a plain name is read under the node def uses(nn: Tree.Node, +name: String) -> Nat: match nn: case Tree.NCons{h, rest}: Nat.add(uses(h, name), uses(rest, name)) case Tree.Group{open, kids, close}: uses(kids, name) case Tree.Stmt{kind, kids, body}: Nat.add(uses(kids, name), uses(body, name)) case Tree.Leaf{Lex.Tok{Lex.TName{}, +t, l, c}}: Bool.pick(Nat, String.eq(t, name), 1n, 0n) case other: 0n Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add 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=bolt@1.27.0.0/src/syntax/lex.bend&name=Tok https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=TokKind https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/tree.bend&name=Node