def code

bolt@1.27.0.0 · src/rules/suspicious/empty.bend:66

import bolt@1.27.0.0/src/rules/suspicious/empty.bend as Empty
import Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

66# a token's text where it is code: a string literal or a comment says
67# nothing the rule reads
68def code(kk: Lex.TokKind, tt: String) -> String:
69  match kk:
70    case Lex.TStr{}:
71      ""
72    case Lex.TComment{}:
73      ""
74    case other:
75      tt

Uses (2)

Used by (8)