def check.cost

bolt@1.27.0.0 · src/rules/style/wrap.bend:69

import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrap
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/rules/style/space.bend as Space

69# one token's share of the header's width: a comment has none
70def check.cost(kd: Lex.TokKind, +tx: String) -> U32:
71  match kd:
72    case Lex.TComment{}:
73      0
74    case other:
75      Space.width_of(other, tx)

Uses (4)

Used by (1)