rustExtractor.getSignature: raw params text + ` -> ` + raw return type.
(&self, node: Node)
| 371 | |
| 372 | /// rustExtractor.getSignature: raw params text + ` -> ` + raw return type. |
| 373 | fn signature_of(&self, node: Node) -> Option<String> { |
| 374 | let params = node.child_by_field_name("parameters")?; |
| 375 | let mut sig = self.text(params).to_string(); |
| 376 | if let Some(rt) = node.child_by_field_name("return_type") { |
| 377 | sig.push_str(" -> "); |
| 378 | sig.push_str(self.text(rt)); |
| 379 | } |
| 380 | Some(sig) |
| 381 | } |
| 382 | |
| 383 | /// rustExtractor.getVisibility: direct `visibility_modifier` child whose |
| 384 | /// text contains `pub` → public, else private; none → private. |
no test coverage detected