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

Function annotate

graphify/extract.py:4037–4042  ·  view source on GitHub ↗
(result: dict)

Source from the content-addressed store, hash-verified

4035 "recovered_from": original["parse_errors"]}
4036
4037 def annotate(result: dict) -> dict:
4038 file_node = next((n for n in result.get("nodes", [])
4039 if n.get("id") == _make_id(str(path))), None)
4040 if file_node is not None:
4041 file_node.setdefault("metadata", {})["cpp_conditional_recovery"] = coverage
4042 return result
4043
4044 if problem:
4045 coverage["reason"] = problem

Callers 1

Calls 2

_make_idFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected