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

Function _scan_prelude

scripts/theme_gate.py:249–254  ·  view source on GitHub ↗
(prelude: str, base: int, ln: _Lines, found: list[tuple[int, str]])

Source from the content-addressed store, hash-verified

247
248
249def _scan_prelude(prelude: str, base: int, ln: _Lines, found: list[tuple[int, str]]) -> None:
250 view = list(prelude)
251 for pm in re.finditer(r"::?[\w-]+(?:\([^()]*\))?|\[[^\]]*\]", prelude):
252 _blank(prelude, pm.start(), pm.end(), view)
253 for tm in _SELECTOR_TOKEN.finditer("".join(view)):
254 found.append((ln.of(base + tm.start()), tm.group(0)))
255
256
257def cases_b(root: Path) -> list[Case]:

Callers 1

css_selectorsFunction · 0.85

Calls 4

ofMethod · 0.80
_blankFunction · 0.70
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected