MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_exported

Method is_exported

codegraph-kernel/src/go.rs:339–345  ·  view source on GitHub ↗

goExtractor.isExported: uppercase first letter of the name field.

(&self, node: Node)

Source from the content-addressed store, hash-verified

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> {

Callers 2

extract_functionMethod · 0.45
extract_type_aliasMethod · 0.45

Calls 1

textMethod · 0.45

Tested by

no test coverage detected