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

Method signature_of

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

goExtractor.getSignature: params + ' ' + result.

(&self, node: Node)

Source from the content-addressed store, hash-verified

326
327 /// goExtractor.getSignature: params + ' ' + result.
328 fn signature_of(&self, node: Node) -> Option<String> {
329 let params = node.child_by_field_name("parameters")?;
330 let mut sig = self.text(params).to_string();
331 if let Some(result) = node.child_by_field_name("result") {
332 sig.push(' ');
333 sig.push_str(self.text(result));
334 }
335 Some(sig)
336 }
337
338 /// goExtractor.isExported: uppercase first letter of the name field.
339 fn is_exported(&self, node: Node) -> bool {

Callers 3

extract_functionMethod · 0.45
extract_methodMethod · 0.45

Calls 1

textMethod · 0.45

Tested by

no test coverage detected