pythonExtractor.getSignature: params + ` -> returnType`.
(&self, node: Node)
| 386 | |
| 387 | /// pythonExtractor.getSignature: params + ` -> returnType`. |
| 388 | fn signature_of(&self, node: Node) -> Option<String> { |
| 389 | let params = node.child_by_field_name("parameters")?; |
| 390 | let mut sig = self.text(params).to_string(); |
| 391 | if let Some(ret) = node.child_by_field_name("return_type") { |
| 392 | sig.push_str(" -> "); |
| 393 | sig.push_str(self.text(ret)); |
| 394 | } |
| 395 | Some(sig) |
| 396 | } |
| 397 | |
| 398 | /// pythonExtractor.isAsync: the PREVIOUS SIBLING token is `async`. |
| 399 | fn is_async(&self, node: Node) -> bool { |
no test coverage detected