pythonExtractor.getSignature: params + ` -> returnType`.
(&self, node: Node)
| 291 | |
| 292 | /// pythonExtractor.getSignature: params + ` -> returnType`. |
| 293 | fn signature_of(&self, node: Node) -> Option<String> { |
| 294 | let params = node.child_by_field_name("parameters")?; |
| 295 | let mut sig = self.text(params).to_string(); |
| 296 | if let Some(ret) = node.child_by_field_name("return_type") { |
| 297 | sig.push_str(" -> "); |
| 298 | sig.push_str(self.text(ret)); |
| 299 | } |
| 300 | Some(sig) |
| 301 | } |
| 302 | |
| 303 | /// pythonExtractor.isAsync: the PREVIOUS SIBLING token is `async`. |
| 304 | fn is_async(&self, node: Node) -> bool { |
no test coverage detected