findDeclaratorQualifiedId (languages/c-cpp.ts:13): BFS for the declarator's `qualified_identifier`, skipping parameter_list + trailing_return_type so a qualified PARAMETER type can't be mistaken for the method name.
(declarator: Node)
| 1905 | /// `qualified_identifier`, skipping parameter_list + trailing_return_type so a |
| 1906 | /// qualified PARAMETER type can't be mistaken for the method name. |
| 1907 | fn find_declarator_qualified_id(declarator: Node) -> Option<Node> { |
| 1908 | let mut queue: VecDeque<Node> = VecDeque::new(); |
| 1909 | queue.push_back(declarator); |
| 1910 | while let Some(current) = queue.pop_front() { |
| 1911 | if current.kind() == "qualified_identifier" { |
| 1912 | return Some(current); |
| 1913 | } |
| 1914 | for i in 0..current.named_child_count() { |
| 1915 | if let Some(child) = current.named_child(i) { |
| 1916 | if child.kind() != "parameter_list" && child.kind() != "trailing_return_type" { |
| 1917 | queue.push_back(child); |
| 1918 | } |
| 1919 | } |
| 1920 | } |
| 1921 | } |
| 1922 | None |
| 1923 | } |
| 1924 | |
| 1925 | /// cDeclaratorIdentifier (tree-sitter.ts:234): resolve the declared identifier |
| 1926 | /// through init/pointer/array/parenthesized declarator wrappers; a |
no outgoing calls
no test coverage detected