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

Function ps_module_is_dir

src/pipeline/pass_semantic.c:36–38  ·  view source on GitHub ↗

True for languages whose module QN derives from the CONTAINING DIRECTORY * (Java/Go package). MUST match cbm_lang_module_is_dir() (internal/cbm/helpers.c) * so base-class / same-module resolution keys against the directory-based * def-node QNs. */

Source from the content-addressed store, hash-verified

34 * so base-class / same-module resolution keys against the directory-based
35 * def-node QNs. */
36static bool ps_module_is_dir(CBMLanguage lang) {
37 return lang == CBM_LANG_JAVA || lang == CBM_LANG_GO;
38}
39
40static char *read_file(const char *path, int *out_len) {
41 *out_len = -1; /* unknown/read failure; zero is a proven empty file */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected