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

Method get_params

src/ast/kind.rs:40–48  ·  view source on GitHub ↗
(&self, node: &'a Node)

Source from the content-addressed store, hash-verified

38 }
39
40 pub fn get_params<'a>(&self, node: &'a Node) -> Vec<&'a ParmVarDecl> {
41 let mut params = Vec::new();
42 for child in &node.inner {
43 if let Clang::ParmVarDecl(pvd) = &child.kind {
44 params.push(pvd);
45 }
46 }
47 params
48 }
49
50 pub fn get_ret_type(&self) -> String {
51 let ret_ty_str = if let Some(ty) = self.r#type.get_desugared_type() {

Callers 2

get_fd_param_locMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected