MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / js_var_binding

Function js_var_binding

internal/cbm/extract_usages.c:2016–2028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2014}
2015
2016static 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
2030static bool import_kind_matches(TSNode node, const CBMLangSpec *spec) {
2031 return (spec->import_node_types && cbm_kind_in_set(node, spec->import_node_types)) ||

Callers 1

record_lexical_bindingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected