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

Method has_params

src/ast/kind.rs:29–38  ·  view source on GitHub ↗
(&self, node: &Node)

Source from the content-addressed store, hash-verified

27 }
28
29 pub fn has_params(&self, node: &Node) -> bool {
30 if node.inner.is_empty() {
31 return false;
32 }
33 let first_child = &node.inner[0];
34 if let Clang::ParmVarDecl(_) = &first_child.kind {
35 return true;
36 }
37 false
38 }
39
40 pub fn get_params<'a>(&self, node: &'a Node) -> Vec<&'a ParmVarDecl> {
41 let mut params = Vec::new();

Callers 1

get_fd_param_locMethod · 0.80

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected