The assignment inside an expression_statement, or a null node. */
| 7330 | |
| 7331 | /* The assignment inside an expression_statement, or a null node. */ |
| 7332 | static TSNode py_statement_assignment(TSNode stmt) { |
| 7333 | TSNode null_node = {0}; |
| 7334 | if (strcmp(ts_node_type(stmt), "expression_statement") != 0 || |
| 7335 | ts_node_named_child_count(stmt) == 0) { |
| 7336 | return null_node; |
| 7337 | } |
| 7338 | TSNode inner = ts_node_named_child(stmt, 0); |
| 7339 | return strcmp(ts_node_type(inner), "assignment") == 0 ? inner : null_node; |
| 7340 | } |
| 7341 | |
| 7342 | /* Annotation text of the __init__ parameter called `name`, or NULL. */ |
| 7343 | static const char *py_init_param_annotation(CBMExtractCtx *ctx, TSNode params, const char *name) { |
no outgoing calls
no test coverage detected