RepeatedCall.repeats: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/performance/repeated_call.bend as RepeatedCall Lines 198-215 of bend-lint-rules@0.2.0.0/performance/repeated_call.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/performance/repeated_call.bend&start_line=198&end_line=215 import Base # Whether `c` repeats a call of `seen`: the same definition, in the same branch, with arguments written the same way. def repeats(seen: List<&2, Call>, +c: Call, found: Bool) -> Bool: match seen found: case _ True{}: True{} case Nil{} False{}: False{} case Con{Call{t, callee, args, span, b}, rest} False{}: repeats( rest, c, is_same( 256n, args, Call.args(c), String.eq(t, Call.target(c)) && U32.is_eq(b, Call.branch(c)) ) ) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/repeated_call.bend&name=Call https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/repeated_call.bend&name=Call.args https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/repeated_call.bend&name=Call.branch https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/repeated_call.bend&name=Call.target https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/performance/repeated_call.bend&name=is_same