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

Method visit_decl_stmt

src/analysis/dfa.rs:158–166  ·  view source on GitHub ↗
(&mut self, stmt: &ast::Node)

Source from the content-addressed store, hash-verified

156 }
157
158 fn visit_decl_stmt(&mut self, stmt: &ast::Node) -> Result<()> {
159 if let ast::Clang::DeclStmt(_) = &stmt.kind {
160 for child in &stmt.inner {
161 self.visit_var_decl(child)?;
162 }
163 return Ok(());
164 }
165 eyre::bail!("Visit DeclStmt, but visited {stmt:?}")
166 }
167
168 fn visit_var_decl(&mut self, stmt: &ast::Node) -> Result<()> {
169 if let ast::Clang::VarDecl(vd) = &stmt.kind {

Callers 1

visit_stmtMethod · 0.80

Calls 1

visit_var_declMethod · 0.80

Tested by

no test coverage detected