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

Method declared_member_names

codegraph-kernel/src/java.rs:1472–1490  ·  view source on GitHub ↗

Members already declared directly in a class (exact `classQN::name` matches), split into the method and field namespaces.

(&self, class_row: u32)

Source from the content-addressed store, hash-verified

1470 /// Members already declared directly in a class (exact `classQN::name`
1471 /// matches), split into the method and field namespaces.
1472 fn declared_member_names(&self, class_row: u32) -> (HashSet<String>, HashSet<String>) {
1473 let class_qn = self.nodes_meta[class_row as usize].qualified_name.clone();
1474 let mut taken_methods: HashSet<String> = HashSet::new();
1475 let mut taken_fields: HashSet<String> = HashSet::new();
1476 for m in &self.nodes_meta {
1477 if m.qualified_name == format!("{class_qn}::{}", m.name) {
1478 match m.kind {
1479 "method" | "function" => {
1480 taken_methods.insert(m.name.clone());
1481 }
1482 "field" | "variable" | "constant" | "property" => {
1483 taken_fields.insert(m.name.clone());
1484 }
1485 _ => {}
1486 }
1487 }
1488 }
1489 (taken_methods, taken_fields)
1490 }
1491
1492 /// synthesizeRecordComponents (languages/java.ts): per record component a
1493 /// private field and a public accessor, anchored on the component's name.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected