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

Function py_statement_assignment

internal/cbm/extract_defs.c:7332–7340  ·  view source on GitHub ↗

The assignment inside an expression_statement, or a null node. */

Source from the content-addressed store, hash-verified

7330
7331/* The assignment inside an expression_statement, or a null node. */
7332static 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. */
7343static const char *py_init_param_annotation(CBMExtractCtx *ctx, TSNode params, const char *name) {

Callers 2

py_extract_init_fieldsFunction · 0.85
extract_py_field_typesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected