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

Function is_comment_node

internal/cbm/extract_defs.c:1210–1213  ·  view source on GitHub ↗

Check if a node is a comment node type.

Source from the content-addressed store, hash-verified

1208
1209// Check if a node is a comment node type.
1210static bool is_comment_node(const char *kind) {
1211 return (strcmp(kind, "comment") == 0 || strcmp(kind, "block_comment") == 0 ||
1212 strcmp(kind, "line_comment") == 0 || strcmp(kind, "multiline_comment") == 0);
1213}
1214
1215// Extract comment text, truncating to MAX_COMMENT_LEN.
1216// #1017: snap the cut point back to a complete UTF-8 codepoint boundary.

Callers 3

extract_docstringFunction · 0.85
extract_decoratorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected