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

Function is_vhdl_interface_binding

internal/cbm/extract_usages.c:1015–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013}
1014
1015static bool is_vhdl_interface_binding(TSNode node) {
1016 static const char *const interface_kinds[] = {
1017 "interface_constant_declaration", "interface_signal_declaration",
1018 "interface_variable_declaration", "interface_declaration", NULL};
1019 for (TSNode parent = ts_node_parent(node); !ts_node_is_null(parent);
1020 parent = ts_node_parent(parent)) {
1021 if (kind_in_exact_set(ts_node_type(parent), interface_kinds)) {
1022 /* FIELD_COUNT does not name this role; every interface production
1023 * starts with its identifier_list before mode/type/default. */
1024 return named_child_contains(parent, 0, node);
1025 }
1026 }
1027 return false;
1028}
1029
1030static bool is_pine_function_binding(TSNode node) {
1031 static const char *const fields[] = {"argument", NULL};

Callers 1

is_policy_bindingFunction · 0.85

Calls 2

kind_in_exact_setFunction · 0.85
named_child_containsFunction · 0.85

Tested by

no test coverage detected