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

Function _cpp_conditional_tokens

graphify/extract.py:3862–3869  ·  view source on GitHub ↗
(source: bytes)

Source from the content-addressed store, hash-verified

3860
3861
3862def _cpp_conditional_tokens(source: bytes):
3863 pos = 0
3864 while match := _CPP_CONDITIONAL_TOKEN_RE.search(source, pos):
3865 pos = match.end()
3866 if match.group(1) is not None:
3867 end = source.find(b")" + match.group(1) + b'"', pos)
3868 pos = len(source) if end == -1 else end + len(match.group(1)) + 2
3869 yield match, pos
3870
3871
3872_CPP_DIRECTIVE_COMMENT_RE = re.compile(

Calls 1

findMethod · 0.80

Tested by

no test coverage detected