(&mut self, docs: &Vec<Param>, header: &str)
| 1412 | } |
| 1413 | |
| 1414 | fn rustdoc_params(&mut self, docs: &Vec<Param>, header: &str) { |
| 1415 | let _ = (docs, header); |
| 1416 | // let docs = docs |
| 1417 | // .iter() |
| 1418 | // .filter(|param| param.docs.trim().len() > 0) |
| 1419 | // .collect::<Vec<_>>(); |
| 1420 | // if docs.len() == 0 { |
| 1421 | // return; |
| 1422 | // } |
| 1423 | |
| 1424 | // self.push_str("///\n"); |
| 1425 | // self.push_str("/// ## "); |
| 1426 | // self.push_str(header); |
| 1427 | // self.push_str("\n"); |
| 1428 | // self.push_str("///\n"); |
| 1429 | |
| 1430 | // for param in docs { |
| 1431 | // for (i, line) in param.docs.lines().enumerate() { |
| 1432 | // self.push_str("/// "); |
| 1433 | // // Currently wasi only has at most one return value, so there's no |
| 1434 | // // need to indent it or name it. |
| 1435 | // if header != "Return" { |
| 1436 | // if i == 0 { |
| 1437 | // self.push_str("* `"); |
| 1438 | // self.push_str(to_rust_ident(param.name.as_str())); |
| 1439 | // self.push_str("` - "); |
| 1440 | // } else { |
| 1441 | // self.push_str(" "); |
| 1442 | // } |
| 1443 | // } |
| 1444 | // self.push_str(line); |
| 1445 | // self.push_str("\n"); |
| 1446 | // } |
| 1447 | // } |
| 1448 | } |
| 1449 | |
| 1450 | fn print_signature(&mut self, func: &Function, params_owned: bool, sig: &FnSig) -> Vec<String> { |
| 1451 | let params = self.print_docs_and_params(func, params_owned, sig); |
no outgoing calls
no test coverage detected