MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / _file_props

Function _file_props

src/codegraphcontext/cli/visualizer.py:48–53  ·  view source on GitHub ↗
(name: str, file: Optional[str])

Source from the content-addressed store, hash-verified

46
47
48def _file_props(name: str, file: Optional[str]) -> str:
49 fn = _escape_cypher_string(name)
50 if file:
51 path = _escape_cypher_string(str(Path(file).resolve()))
52 return f"{{name: '{fn}', path: '{path}'}}"
53 return f"{{name: '{fn}'}}"
54
55
56def _launch_visualizer(

Callers 3

visualize_call_graphFunction · 0.85
visualize_call_chainFunction · 0.85

Calls 2

_escape_cypher_stringFunction · 0.85
resolveMethod · 0.45

Tested by

no test coverage detected