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

Method lombok_annotation_names

codegraph-kernel/src/java.rs:1452–1468  ·  view source on GitHub ↗
(&self, node: Node<'t>)

Source from the content-addressed store, hash-verified

1450 // --- Lombok synthesis (#912, languages/java.ts synthesizeLombokMembers) ------------
1451
1452 fn lombok_annotation_names(&self, node: Node<'t>) -> HashSet<String> {
1453 let mut names = HashSet::new();
1454 let Some(modifiers) = self.modifiers_child(node) else { return names };
1455 for i in 0..modifiers.named_child_count() {
1456 let Some(child) = modifiers.named_child(i) else { continue };
1457 if matches!(child.kind(), "marker_annotation" | "annotation") {
1458 if let Some(name_node) = child.child_by_field_name("name") {
1459 if let Some(simple) = self.text(name_node).trim().rsplit('.').next() {
1460 if !simple.is_empty() {
1461 names.insert(simple.to_string());
1462 }
1463 }
1464 }
1465 }
1466 }
1467 names
1468 }
1469
1470 /// Members already declared directly in a class (exact `classQN::name`
1471 /// matches), split into the method and field namespaces.

Callers 1

Calls 3

modifiers_childMethod · 0.80
nextMethod · 0.80
textMethod · 0.65

Tested by

no test coverage detected