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