| 1917 | } |
| 1918 | |
| 1919 | static bool import_alias_contains(TSNode node, TSNode boundary) { |
| 1920 | for (TSNode parent = ts_node_parent(node); |
| 1921 | !ts_node_is_null(parent) && !ts_node_eq(parent, boundary); |
| 1922 | parent = ts_node_parent(parent)) { |
| 1923 | if (field_contains_node(parent, "alias", node)) { |
| 1924 | return true; |
| 1925 | } |
| 1926 | } |
| 1927 | return false; |
| 1928 | } |
| 1929 | |
| 1930 | static bool rust_use_list_has_direct_self(TSNode list) { |
| 1931 | uint32_t count = ts_node_named_child_count(list); |
no test coverage detected