| 2014 | } |
| 2015 | |
| 2016 | static bool js_var_binding(TSNode node) { |
| 2017 | for (TSNode parent = ts_node_parent(node); !ts_node_is_null(parent); |
| 2018 | parent = ts_node_parent(parent)) { |
| 2019 | const char *kind = ts_node_type(parent); |
| 2020 | if (strcmp(kind, "variable_declaration") == 0) { |
| 2021 | return true; |
| 2022 | } |
| 2023 | if (strcmp(kind, "lexical_declaration") == 0) { |
| 2024 | return false; |
| 2025 | } |
| 2026 | } |
| 2027 | return false; |
| 2028 | } |
| 2029 | |
| 2030 | static bool import_kind_matches(TSNode node, const CBMLangSpec *spec) { |
| 2031 | return (spec->import_node_types && cbm_kind_in_set(node, spec->import_node_types)) || |
no outgoing calls
no test coverage detected