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

Method lombok_annotation_names

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

Source from the content-addressed store, hash-verified

1337 // --- Lombok synthesis (#912, languages/java.ts synthesizeLombokMembers) ------------
1338
1339 fn lombok_annotation_names(&self, node: Node<'t>) -> HashSet<String> {
1340 let mut names = HashSet::new();
1341 let Some(modifiers) = self.modifiers_child(node) else { return names };
1342 for i in 0..modifiers.named_child_count() {
1343 let Some(child) = modifiers.named_child(i) else { continue };
1344 if matches!(child.kind(), "marker_annotation" | "annotation") {
1345 if let Some(name_node) = child.child_by_field_name("name") {
1346 if let Some(simple) = self.text(name_node).trim().rsplit('.').next() {
1347 if !simple.is_empty() {
1348 names.insert(simple.to_string());
1349 }
1350 }
1351 }
1352 }
1353 }
1354 names
1355 }
1356
1357 fn synthesize_lombok_members(&mut self, class_node: Node<'t>, class_row: u32) {
1358 let class_anns = self.lombok_annotation_names(class_node);

Callers 1

Calls 2

modifiers_childMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected