MCPcopy
hub / github.com/tirth8205/code-review-graph / _qualify

Method _qualify

code_review_graph/parser.py:5708–5712  ·  view source on GitHub ↗

Create a qualified name: file_path::ClassName.name or file_path::name.

(self, name: str, file_path: str, enclosing_class: Optional[str])

Source from the content-addressed store, hash-verified

5706 return None
5707
5708 def _qualify(self, name: str, file_path: str, enclosing_class: Optional[str]) -> str:
5709 """Create a qualified name: file_path::ClassName.name or file_path::name."""
5710 if enclosing_class:
5711 return f"{file_path}::{enclosing_class}.{name}"
5712 return f"{file_path}::{name}"
5713
5714 def _get_name(self, node, language: str, kind: str) -> Optional[str]:
5715 """Extract the name from a class/function definition node."""

Callers 15

parse_bytesMethod · 0.95
_parse_vueMethod · 0.95
_parse_svelteMethod · 0.95
_parse_notebook_cellsMethod · 0.95
_parse_rescriptMethod · 0.95
_resolve_call_targetsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected