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:1840–1842  ·  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

1838// `proj.Outer`, not `proj.Outer.Outer`, and a method in `myapp/db/conn.go`
1839// belongs to module `proj.myapp.db`, not `proj.myapp.db.conn`.
1840static bool cbm_lang_module_is_dir(CBMLanguage lang) {
1841 return lang == CBM_LANG_JAVA || lang == CBM_LANG_GO;
1842}
1843
1844char *cbm_fqn_module_source_lang(CBMArena *a, const char *project, const char *rel_path,
1845 CBMLanguage lang) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected