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

Method signature_of

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

goExtractor.getSignature: params + ' ' + result.

(&self, node: Node)

Source from the content-addressed store, hash-verified

330
331 /// goExtractor.getSignature: params + ' ' + result.
332 fn signature_of(&self, node: Node) -> Option<String> {
333 let params = node.child_by_field_name("parameters")?;
334 let mut sig = self.text(params).to_string();
335 if let Some(result) = node.child_by_field_name("result") {
336 sig.push(' ');
337 sig.push_str(self.text(result));
338 }
339 Some(sig)
340 }
341
342 /// goExtractor.isExported: uppercase first letter of the name field (a
343 /// var_spec / const_spec's first name included).

Callers 3

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 2

pushMethod · 0.80
textMethod · 0.65

Tested by

no test coverage detected