(&self, node: Node<'t>)
| 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. |
no test coverage detected