Space.width_of: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/rules/style/space.bend as Space Lines 34-44 of bolt@1.27.0.0/src/rules/style/space.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/rules/style/space.bend&start_line=34&end_line=44 import Base import bolt@1.27.0.0/src/syntax/lex.bend as Lex # a token's share of its line's width; a `#|` trailer line counts nothing def width_of(kk: Lex.TokKind, +tt: String) -> U32: match kk: case Lex.TStr{}: 2 case Lex.TNewline{}: 0 case Lex.TComment{}: Bool.pick(U32, String.starts_with(tt, "#|"), 0, U32.from_nat(String.length(tt))) case other: U32.from_nat(String.length(tt)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/syntax/lex.bend&name=TokKind