Skip to main content

is_comment_node

Function is_comment_node 

Source
pub fn is_comment_node(kind: &str) -> bool
Expand description

Whether a tree-sitter node kind names a comment. Comment subtrees are skipped wholesale by walk_non_comment_leaves, so doc-comments and ordinary comments alike are excluded from semantic fingerprints.