(&self, node: &'a Node)
| 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() { |
no test coverage detected