| 93 | } |
| 94 | |
| 95 | static 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 | |
| 103 | static bool is_identifier(const char *k) { |
| 104 | return strcmp(k, "identifier") == 0 || strcmp(k, "field_identifier") == 0 || |
no test coverage detected