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

Function _is_code_span_mention

graphify/watch.py:1407–1413  ·  view source on GitHub ↗
(edge: dict)

Source from the content-addressed store, hash-verified

1405 return raw_target == _make_id(str(candidate))
1406
1407 def _is_code_span_mention(edge: dict) -> bool:
1408 target = nodes_by_id.get(edge.get("target"))
1409 return (
1410 target is not None
1411 and target.get("file_type") == "code"
1412 and not _is_file_node(target)
1413 )
1414
1415 def _is_code_file_citation(edge: dict) -> bool:
1416 """A page -> source-file link citation minted by markdown resolution (#4804)."""

Callers 1

_keep_edgeFunction · 0.85

Calls 2

_is_file_nodeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected