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

Method declared_member_names

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

1415 /// Members already declared directly in a class (exact `classQN::name`
1416 /// matches), split into the method and field namespaces.
1417 fn declared_member_names(&self, class_row: u32) -> (HashSet<String>, HashSet<String>) {
1418 let class_qn = self.nodes_meta[class_row as usize].qualified_name.clone();
1419 let mut taken_methods: HashSet<String> = HashSet::new();
1420 let mut taken_fields: HashSet<String> = HashSet::new();
1421 for m in &self.nodes_meta {
1422 if m.qualified_name == format!("{class_qn}::{}", m.name) {
1423 match m.kind {
1424 "method" | "function" => {
1425 taken_methods.insert(m.name.clone());
1426 }
1427 "field" | "variable" | "constant" | "property" => {
1428 taken_fields.insert(m.name.clone());
1429 }
1430 _ => {}
1431 }
1432 }
1433 }
1434 (taken_methods, taken_fields)
1435 }
1436
1437 /// synthesizeRecordComponents (languages/java.ts): per record component a
1438 /// private field and a public accessor, anchored on the component's name.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected