MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / in_spans

Function in_spans

scripts/website/find_suspicious_inline_code.py:48–52  ·  view source on GitHub ↗
(pos: int, spans: list[tuple[int, int]])

Source from the content-addressed store, hash-verified

46
47
48def in_spans(pos: int, spans: list[tuple[int, int]]) -> bool:
49 for s, e in spans:
50 if s <= pos < e:
51 return True
52 return False
53
54
55def is_markdown_scaffold(stripped: str) -> bool:

Callers 1

scan_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected