MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / cases_d

Function cases_d

scripts/theme_gate.py:312–321  ·  view source on GitHub ↗
(root: Path)

Source from the content-addressed store, hash-verified

310
311
312def cases_d(root: Path) -> list[Case]:
313 out: list[Case] = []
314 for p in _liquid_files(root):
315 masked = mask_inactive(_read(p))
316 ln = _Lines(masked)
317 rel = _rel(root, p)
318 for sp in _LIQUID_SPAN.finditer(masked):
319 for m in _SETTING.finditer(sp.group(0)):
320 out.append((rel, ln.of(sp.start() + m.start()), f"{m.group(1)}.{m.group(2) or m.group(4)}"))
321 return out
322
323
324_META_BRACKET = re.compile(r"""metafields\[['"]([\w-]+)['"]\]\[['"]([\w-]+)['"]\]""")

Callers 1

measureFunction · 0.85

Calls 7

_liquid_filesFunction · 0.85
mask_inactiveFunction · 0.85
_LinesClass · 0.85
ofMethod · 0.80
_readFunction · 0.70
_relFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected