MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / parse_header_ast

Method parse_header_ast

src/execution/ast.rs:86–93  ·  view source on GitHub ↗
(header: &Path, deopt: &Deopt)

Source from the content-addressed store, hash-verified

84 }
85
86 pub fn parse_header_ast(header: &Path, deopt: &Deopt) -> eyre::Result<Node> {
87 let mut ast = Executor::extract_header_ast(header, deopt)?;
88 let headers =
89 crate::deopt::utils::read_all_files_in_dir(&deopt.get_library_build_header_path()?)?;
90 let _ = eliminate_irrelative_ast(&mut ast, &headers);
91 log::info!("Parsed header for: {header:?}");
92 Ok(ast)
93 }
94
95 pub fn extract_header_ast(header: &Path, deopt: &Deopt) -> Result<Node> {
96 let include_path =

Callers

nothing calls this directly

Calls 3

read_all_files_in_dirFunction · 0.85
eliminate_irrelative_astFunction · 0.85

Tested by

no test coverage detected