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

Function _defined_elements

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

Source from the content-addressed store, hash-verified

276
277
278def _defined_elements(root: Path) -> set[str]:
279 names: set[str] = set()
280 assets = root / "assets"
281 if assets.is_dir():
282 for p in [*assets.glob("*.js"), *assets.glob("*.js.liquid")]:
283 names.update(m.group(2) for m in _DEFINE.finditer(_read(p)))
284 for p in _liquid_files(root):
285 for jm in _JS_BLOCK.finditer(_read(p)):
286 names.update(m.group(2) for m in _DEFINE.finditer(jm.group(1)))
287 return names
288
289
290def cases_c(root: Path) -> list[Case]:

Callers 1

cases_cFunction · 0.85

Calls 3

_liquid_filesFunction · 0.85
updateMethod · 0.80
_readFunction · 0.70

Tested by

no test coverage detected