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

Method signature_of

codegraph-kernel/src/java.rs:462–469  ·  view source on GitHub ↗
(&self, node: Node)

Source from the content-addressed store, hash-verified

460 }
461
462 fn signature_of(&self, node: Node) -> Option<String> {
463 let params = node.child_by_field_name("parameters")?;
464 let params_text = self.text(params);
465 match node.child_by_field_name("type") {
466 Some(ret) => Some(format!("{} {}", self.text(ret), params_text)),
467 None => Some(params_text.to_string()),
468 }
469 }
470
471 /// normalizeJavaType (languages/java.ts).
472 fn normalize_java_type(&self, type_node: Option<Node>) -> Option<String> {

Callers 2

extract_methodMethod · 0.45
extract_functionMethod · 0.45

Calls 1

textMethod · 0.65

Tested by

no test coverage detected