def cite

bolt@1.27.0.0 · src/rules/suspicious/thunk.bend:72

import bolt@1.27.0.0/src/rules/suspicious/thunk.bend as Thunk
import Base
import bolt@1.27.0.0/src/finding.bend as F

72# the finding at the self-call's name
73def cite(+ll: U32, +cc: U32, +name: String, +path: String) -> F.Finding:
74  F.Finding{path, ll, cc, U32.from_nat(String.length(name)), "thunk",
75    name ++ " calls itself inside a thunk, which allocates a closure and leaves the loop on every step; carry the test as a Bool into the next call (`go(rest, k, test(h))`) and match on it first, so the search stays a loop."}

Uses (6)

Used by (1)