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

Function is_operator_node

src/semantic/ast_profile.c:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static bool is_operator_node(const char *k) {
96 /* Named nodes that represent operations (not data). */
97 return is_control_if(k) || is_control_for(k) || is_control_while(k) || is_control_switch(k) ||
98 is_control_try(k) || is_return(k) || is_comparison(k) || is_arithmetic(k) ||
99 is_assignment(k) || strcmp(k, "call_expression") == 0 ||
100 strcmp(k, "member_expression") == 0 || strcmp(k, "subscript_expression") == 0;
101}
102
103static bool is_identifier(const char *k) {
104 return strcmp(k, "identifier") == 0 || strcmp(k, "field_identifier") == 0 ||

Callers 1

accumulate_halsteadFunction · 0.85

Calls 9

is_control_ifFunction · 0.85
is_control_forFunction · 0.85
is_control_whileFunction · 0.85
is_control_switchFunction · 0.85
is_control_tryFunction · 0.85
is_returnFunction · 0.85
is_comparisonFunction · 0.85
is_arithmeticFunction · 0.85
is_assignmentFunction · 0.85

Tested by

no test coverage detected