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

Method signature_of

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

Source from the content-addressed store, hash-verified

446 }
447
448 fn signature_of(&self, node: Node) -> Option<String> {
449 let params = node.child_by_field_name("parameters")?;
450 let params_text = self.text(params);
451 match node.child_by_field_name("type") {
452 Some(ret) => Some(format!("{} {}", self.text(ret), params_text)),
453 None => Some(params_text.to_string()),
454 }
455 }
456
457 /// normalizeJavaType (languages/java.ts).
458 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.45

Tested by

no test coverage detected