def rate

bolt@1.27.0.0 · src/rules/pedantic/rewalk.bend:768

import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalk
import Base
import bolt@1.27.0.0/src/syntax/tree.bend as Tree

768# each site, rated once, so the reports below compare ratings and never walk
769# the piece again: a walk per site, not one per pair of sites
770def rate(sites: List<&2, Site>, +body: Tree.Node) -> List<&2, Rated>:
771  match sites:
772    case Nil{}:
773      Nil{}
774    case Con{s, rest}:
775      rate_one(s, body) <> rate(rest, body)

Uses (5)

Used by (1)