MCPcopy Index your code
hub / github.com/tirth8205/code-review-graph / node_to_dict

Function node_to_dict

code_review_graph/graph.py:1355–1363  ·  view source on GitHub ↗
(n: GraphNode)

Source from the content-addressed store, hash-verified

1353
1354
1355def node_to_dict(n: GraphNode) -> dict:
1356 return {
1357 "id": n.id, "kind": n.kind, "name": _sanitize_name(n.name),
1358 "qualified_name": _sanitize_name(n.qualified_name), "file_path": n.file_path,
1359 "line_start": n.line_start, "line_end": n.line_end,
1360 "language": n.language,
1361 "parent_name": _sanitize_name(n.parent_name) if n.parent_name else n.parent_name,
1362 "is_test": n.is_test,
1363 }
1364
1365
1366def edge_to_dict(e: GraphEdge) -> dict:

Callers 9

export_graph_dataFunction · 0.85
analyze_changesFunction · 0.85
semantic_searchFunction · 0.85
get_community_funcFunction · 0.85
get_review_contextFunction · 0.85
get_impact_radiusFunction · 0.85
query_graphFunction · 0.85
find_large_functionsFunction · 0.85

Calls 1

_sanitize_nameFunction · 0.85

Tested by 1