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

Method declared_member_names

codegraph-kernel/src/java.rs:1470–1488  ·  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

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

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected