fn hasDocComment(tree: Ast, start_token: Ast.TokenIndex, end_token: Ast.TokenIndex) bool
Returns true if there exists a doc comment between the start of token start_token and the start of token end_token.
start_token
end_token
tree: Ast
start_token: Ast.TokenIndex
end_token: Ast.TokenIndex
2995 2996 2997 2998 2999 3000 3001
fn hasDocComment(tree: Ast, start_token: Ast.TokenIndex, end_token: Ast.TokenIndex) bool { return std.mem.findScalar( Token.Tag, tree.tokens.items(.tag)[start_token..end_token], .doc_comment, ) != null; }
Returns true if there exists a doc comment between the start of token
start_tokenand the start of tokenend_token.