MCPcopy
hub / github.com/HKUDS/DeepCode / _analyze_single_file_with_relationships

Method _analyze_single_file_with_relationships

tools/code_indexer.py:951–964  ·  view source on GitHub ↗

Analyze a single file and its relationships (for concurrent processing)

(
        self, file_path: Path, index: int, total: int
    )

Source from the content-addressed store, hash-verified

949 return []
950
951 async def _analyze_single_file_with_relationships(
952 self, file_path: Path, index: int, total: int
953 ) -> tuple:
954 """Analyze a single file and its relationships (for concurrent processing)"""
955 if self.verbose_output:
956 self.logger.info(f"Analyzing file {index}/{total}: {file_path.name}")
957
958 # Get file summary
959 file_summary = await self.analyze_file_content(file_path)
960
961 # Find relationships
962 relationships = await self.find_relationships(file_summary)
963
964 return file_summary, relationships
965
966 async def process_repository(self, repo_path: Path) -> RepoIndex:
967 """Process a single repository and create complete index with optional concurrent processing"""

Callers 2

Calls 2

analyze_file_contentMethod · 0.95
find_relationshipsMethod · 0.95

Tested by

no test coverage detected