def report

bolt@1.27.0.0 · src/rules/perf/chars.bend:46

import bolt@1.27.0.0/src/rules/perf/chars.bend as Chars
import Base
import bolt@1.27.0.0/src/finding.bend as F

46# a finding when the match holds more character literals than is cheap
47def report(+nn: U32, +path: String, +ll: U32, +cc: U32) -> List<&2, F.Finding>:
48  Bool.pick(List<&2, F.Finding>, U32.is_gt(nn, 8),
49    [F.Finding{path, ll, cc, 5, "chars", "This match has " ++ U32.show(nn)
50      ++ " character-literal cases, over the limit of 8, which blows up compile time and memory; compare Char.to_u32(c) instead."}],
51    [])

Uses (8)

Used by (1)