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

Function is_comment_node

internal/cbm/extract_defs.c:1165–1168  ·  view source on GitHub ↗

Check if a node is a comment node type.

Source from the content-addressed store, hash-verified

1163
1164// Check if a node is a comment node type.
1165static bool is_comment_node(const char *kind) {
1166 return (strcmp(kind, "comment") == 0 || strcmp(kind, "block_comment") == 0 ||
1167 strcmp(kind, "line_comment") == 0 || strcmp(kind, "multiline_comment") == 0);
1168}
1169
1170// Extract comment text, truncating to MAX_COMMENT_LEN.
1171static char *extract_comment_text(CBMArena *a, TSNode node, const char *source) {

Callers 2

extract_docstringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected