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

Method lombok_annotation_names

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

Source from the content-addressed store, hash-verified

1396 // --- Lombok synthesis (#912, languages/java.ts synthesizeLombokMembers) ------------
1397
1398 fn lombok_annotation_names(&self, node: Node<'t>) -> HashSet<String> {
1399 let mut names = HashSet::new();
1400 let Some(modifiers) = self.modifiers_child(node) else { return names };
1401 for child in modifiers.named_children(&mut modifiers.walk()) {
1402 if matches!(child.kind(), "marker_annotation" | "annotation") {
1403 if let Some(name_node) = child.child_by_field_name("name") {
1404 if let Some(simple) = self.text(name_node).trim().rsplit('.').next() {
1405 if !simple.is_empty() {
1406 names.insert(simple.to_string());
1407 }
1408 }
1409 }
1410 }
1411 }
1412 names
1413 }
1414
1415 /// Members already declared directly in a class (exact `classQN::name`
1416 /// matches), split into the method and field namespaces.

Callers 1

Calls 4

modifiers_childMethod · 0.80
nextMethod · 0.80
textMethod · 0.65
walkMethod · 0.45

Tested by

no test coverage detected