def piece

bolt@1.27.0.0 · src/rules/suspicious/prefix.bend:131

import bolt@1.27.0.0/src/rules/suspicious/prefix.bend as Prefix
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

131# a token as the finding writes it: a comma with a space after it, an
132# operator with one on each side
133def piece(kk: Lex.TokKind, +tt: String) -> String:
134  match kk:
135    case Lex.TComma{}:
136      ", "
137    case Lex.TOp{}:
138      " " ++ tt ++ " "
139    case other:
140      tt

Uses (3)

Used by (1)