Format.leaf_doc: def of bend-lint-rules@0.2.0.0 Import: import bend-lint-rules@0.2.0.0/layout/format.bend as Format Lines 1434-1443 of bend-lint-rules@0.2.0.0/layout/format.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&start_line=1434&end_line=1443 import Base def leaf_doc(+t: Token) -> Doc: match t: case Token{text, beg, end, col, Newline{}, sym, name, tail, from}: nothing() case Token{+text, beg, end, col, Comment{}, sym, name, tail, from}: str(comment_text(text, text)) case Token{text, beg, end, col, Literal{}, sym, name, tail, from}: str(text) case Token{text, beg, end, col, Code{}, sym, name, tail, from}: code(t) Uses (7): https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=Doc https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=Lex https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=Token https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=code https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=comment_text https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=nothing https://jend.leeeet.dev/definition.txt?path=bend-lint-rules@0.2.0.0/layout/format.bend&name=str