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

Function elixir_binary_operator_binds

internal/cbm/extract_usages.c:1088–1095  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088static bool elixir_binary_operator_binds(CBMExtractCtx *ctx, TSNode node) {
1089 if (ctx->language != CBM_LANG_ELIXIR || strcmp(ts_node_type(node), "binary_operator") != 0) {
1090 return false;
1091 }
1092 TSNode operator_node = ts_node_child_by_field_name(node, TS_FIELD("operator"));
1093 return text_equals(ctx, operator_node, "=") || text_equals(ctx, operator_node, "<-") ||
1094 text_equals(ctx, operator_node, "->") || text_equals(ctx, operator_node, "\\\\");
1095}
1096
1097static bool is_binding_occurrence(CBMExtractCtx *ctx, TSNode node, const CBMLangSpec *spec,
1098 WalkState *state) {

Callers 2

is_binding_occurrenceFunction · 0.85
is_write_occurrenceFunction · 0.85

Calls 1

text_equalsFunction · 0.85

Tested by

no test coverage detected