MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / is_comment_node

Function is_comment_node

internal/cbm/extract_defs.c:1281–1284  ·  view source on GitHub ↗

Check if a node is a comment node type.

Source from the content-addressed store, hash-verified

1279
1280// Check if a node is a comment node type.
1281static bool is_comment_node(const char *kind) {
1282 return (strcmp(kind, "comment") == 0 || strcmp(kind, "block_comment") == 0 ||
1283 strcmp(kind, "line_comment") == 0 || strcmp(kind, "multiline_comment") == 0);
1284}
1285
1286// Python-specific: docstring as first expression_statement -> string in function body.
1287static const char *extract_python_docstring(CBMArena *a, TSNode node, const char *source) {

Callers 4

doc_trivia_kindFunction · 0.85
doc_go_packageFunction · 0.85
doc_rust_innerFunction · 0.85
extract_decoratorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected