fn tokenSliceForRender(tree: Ast, token_index: Ast.TokenIndex) []const u8
tree: Ast
token_index: Ast.TokenIndex
3162 3163 3164 3165 3166 3167 3168 3169 3170 3171
fn tokenSliceForRender(tree: Ast, token_index: Ast.TokenIndex) []const u8 { var ret = tree.tokenSlice(token_index); switch (tree.tokenTag(token_index)) { .container_doc_comment, .doc_comment => { ret = mem.trimEnd(u8, ret, &std.ascii.whitespace); }, else => {}, } return ret; }