Lines Matching defs:expr
244 _PyPegen_cmpop_expr_pair(Parser *p, cmpop_ty cmpop, expr_ty expr)
246 assert(expr != NULL);
252 a->expr = expr;
285 asdl_seq_SET(new_seq, i, pair->expr);
355 /* Creates an `expr_ty` equivalent to `expr` but with `ctx` as context */
357 _PyPegen_set_expr_context(Parser *p, expr_ty expr, expr_context_ty ctx)
359 assert(expr != NULL);
362 switch (expr->kind) {
364 new = _set_name_context(p, expr, ctx);
367 new = _set_tuple_context(p, expr, ctx);
370 new = _set_list_context(p, expr, ctx);
373 new = _set_subscript_context(p, expr, ctx);
376 new = _set_attribute_context(p, expr, ctx);
379 new = _set_starred_context(p, expr, ctx);
382 new = expr;