goExtractor.isExported: uppercase first letter of the name field.
(&self, node: Node)
| 337 | |
| 338 | /// goExtractor.isExported: uppercase first letter of the name field. |
| 339 | fn is_exported(&self, node: Node) -> bool { |
| 340 | if let Some(name_node) = node.child_by_field_name("name") { |
| 341 | let text = self.text(name_node); |
| 342 | return text.as_bytes().first().map(|b| b.is_ascii_uppercase()).unwrap_or(false); |
| 343 | } |
| 344 | false |
| 345 | } |
| 346 | |
| 347 | /// extractGoReturnType (languages/go.ts). |
| 348 | fn return_type_of(&self, node: Node) -> Option<String> { |
no test coverage detected