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

Function cases_f

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

Source from the content-addressed store, hash-verified

325
326
327def cases_f(root: Path) -> list[Case]:
328 out: list[Case] = []
329 for p in _liquid_files(root):
330 masked = mask_inactive(_read(p))
331 ln = _Lines(masked)
332 rel = _rel(root, p)
333 for m in re.finditer(r"\w+\.metafields\.(\w+)\.(\w+)", masked):
334 out.append((rel, ln.of(m.start()), f"metafields.{m.group(1)}.{m.group(2)}"))
335 for m in _META_BRACKET.finditer(masked):
336 out.append((rel, ln.of(m.start()), f"metafields.{m.group(1)}.{m.group(2)}"))
337 return out
338
339
340_CLASS_ATTR = re.compile(r"""(?<![\w-])class\s*=\s*(["&#x27;])(.*?)\1""", re.S)

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