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

Function enclosing

scripts/lint-mem-gate.py:134–140  ·  view source on GitHub ↗
(path, line)

Source from the content-addressed store, hash-verified

132
133
134def enclosing(path, line):
135 best = None
136 for name, start, end, text in function_spans(path):
137 if start <= line <= end:
138 if best is None or start > best[1]:
139 best = (name, start, end, text)
140 return best
141
142
143def segment_hash(text):

Callers 1

mainFunction · 0.85

Calls 1

function_spansFunction · 0.85

Tested by

no test coverage detected