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:1265–1267  ·  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

1263// `proj.Outer`, not `proj.Outer.Outer`, and a method in `myapp/db/conn.go`
1264// belongs to module `proj.myapp.db`, not `proj.myapp.db.conn`.
1265static bool cbm_lang_module_is_dir(CBMLanguage lang) {
1266 return lang == CBM_LANG_JAVA || lang == CBM_LANG_GO;
1267}
1268
1269char *cbm_fqn_module_source_lang(CBMArena *a, const char *project, const char *rel_path,
1270 CBMLanguage lang) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected