don't need to add the name 'lambda' as assigned
This commit is contained in:
parent
35fad2fc48
commit
f67caf8523
|
@ -1213,8 +1213,7 @@ symtable_visit_expr(struct symtable *st, expr_ty e)
|
||||||
VISIT(st, expr, e->v.UnaryOp.operand);
|
VISIT(st, expr, e->v.UnaryOp.operand);
|
||||||
break;
|
break;
|
||||||
case Lambda_kind: {
|
case Lambda_kind: {
|
||||||
if (!GET_IDENTIFIER(lambda) ||
|
if (!GET_IDENTIFIER(lambda))
|
||||||
!symtable_add_def(st, lambda, DEF_LOCAL))
|
|
||||||
return 0;
|
return 0;
|
||||||
if (e->v.Lambda.args->defaults)
|
if (e->v.Lambda.args->defaults)
|
||||||
VISIT_SEQ(st, expr, e->v.Lambda.args->defaults);
|
VISIT_SEQ(st, expr, e->v.Lambda.args->defaults);
|
||||||
|
|
Loading…
Reference in New Issue