(nid: str, label: str, line: int)
| 609 | return None |
| 610 | |
| 611 | def _add_node(nid: str, label: str, line: int) -> None: |
| 612 | if nid not in seen_ids: |
| 613 | seen_ids.add(nid) |
| 614 | nodes.append({"id": nid, "label": label, "file_type": "code", |
| 615 | "source_file": str_path, "source_location": f"L{line}"}) |
| 616 | edges.append({"source": file_nid, "target": nid, "relation": "contains", |
| 617 | "confidence": "EXTRACTED", "source_file": str_path, |
| 618 | "source_location": f"L{line}", "weight": 1.0}) |
| 619 | |
| 620 | def _add_edge(src: str, tgt: str, relation: str, line: int) -> None: |
| 621 | if not src or not tgt: |
no outgoing calls
no test coverage detected