| 1013 | } |
| 1014 | |
| 1015 | static 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 | |
| 1030 | static bool is_pine_function_binding(TSNode node) { |
| 1031 | static const char *const fields[] = {"argument", NULL}; |
no test coverage detected