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

Function cbm_lang_module_is_dir

internal/cbm/helpers.c:1460–1462  ·  view source on GitHub ↗

True when a language derives its module from the CONTAINING DIRECTORY (Java package, Go package) rather than baking the filename stem into the module QN. For these languages a sibling file in the same dir shares the module, and the type/method name is appended once — so a class `Outer` in `Outer.java` is `proj.Outer`, not `proj.Outer.Outer`, and a method in `myapp/db/conn.go` belongs to module `pr

Source from the content-addressed store, hash-verified

1458// `proj.Outer`, not `proj.Outer.Outer`, and a method in `myapp/db/conn.go`
1459// belongs to module `proj.myapp.db`, not `proj.myapp.db.conn`.
1460static bool cbm_lang_module_is_dir(CBMLanguage lang) {
1461 return lang == CBM_LANG_JAVA || lang == CBM_LANG_GO;
1462}
1463
1464char *cbm_fqn_module_source_lang(CBMArena *a, const char *project, const char *rel_path,
1465 CBMLanguage lang) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected