MCPcopy Create free account
hub / github.com/CodeBendKit/codeseek / parse_directory

Method parse_directory

rust-core/src/codegraph/parser.rs:672–683  ·  view source on GitHub ↗

解析目录下的所有文件

(&mut self, dir: &Path)

Source from the content-addressed store, hash-verified

670
671 /// 解析目录下的所有文件
672 pub fn parse_directory(&mut self, dir: &Path) -> Result<(), String> {
673 let files = self.scan_directory(dir);
674 info!("Found {} files to parse", files.len());
675
676 for file in files {
677 if let Err(e) = self.parse_file(&file) {
678 warn!("Failed to parse {}: {}", file.display(), e);
679 }
680 }
681
682 Ok(())
683 }
684
685 /// 构建完整的代码图(增量构建)
686 pub fn build_code_graph(&mut self, dir: &Path) -> Result<CodeGraph, String> {

Callers

nothing calls this directly

Calls 2

scan_directoryMethod · 0.80
parse_fileMethod · 0.45

Tested by

no test coverage detected