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

Function python_directive_for

internal/cbm/extract_usages.c:1968–1978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1966}
1967
1968static CBMPythonDirectiveKind python_directive_for(const WalkState *state,
1969 uint32_t function_scope_id, const char *name) {
1970 for (int i = state ? state->python_directive_count - 1 : -1; i >= 0; i--) {
1971 const CBMPythonDirective *directive = &state->python_directives[i];
1972 if (directive->function_scope_id == function_scope_id && directive->name &&
1973 strcmp(directive->name, name) == 0) {
1974 return (CBMPythonDirectiveKind)directive->kind;
1975 }
1976 }
1977 return 0;
1978}
1979
1980static uint32_t python_enclosing_function_namespace(const WalkState *state,
1981 uint32_t inner_function_id) {

Callers 1

record_lexical_bindingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected