rustExtractor.getSignature: raw params text + ` -> ` + raw return type.
(&self, node: Node)
| 356 | |
| 357 | /// rustExtractor.getSignature: raw params text + ` -> ` + raw return type. |
| 358 | fn signature_of(&self, node: Node) -> Option<String> { |
| 359 | let params = node.child_by_field_name("parameters")?; |
| 360 | let mut sig = self.text(params).to_string(); |
| 361 | if let Some(rt) = node.child_by_field_name("return_type") { |
| 362 | sig.push_str(" -> "); |
| 363 | sig.push_str(self.text(rt)); |
| 364 | } |
| 365 | Some(sig) |
| 366 | } |
| 367 | |
| 368 | /// rustExtractor.getVisibility: direct `visibility_modifier` child whose |
| 369 | /// text contains `pub` → public, else private; none → private. |
no test coverage detected