Use Named Reference for RHS of def_name
This commit is contained in:
parent
aa892378a1
commit
fd2f66e3c0
Notes:
git
2025-01-03 12:22:09 +00:00
5
parse.y
5
parse.y
@ -3388,13 +3388,12 @@ expr : command_call
|
|||||||
|
|
||||||
def_name : fname
|
def_name : fname
|
||||||
{
|
{
|
||||||
ID fname = $1;
|
numparam_name(p, $fname);
|
||||||
numparam_name(p, fname);
|
|
||||||
local_push(p, 0);
|
local_push(p, 0);
|
||||||
p->ctxt.in_def = 1;
|
p->ctxt.in_def = 1;
|
||||||
p->ctxt.in_rescue = before_rescue;
|
p->ctxt.in_rescue = before_rescue;
|
||||||
p->ctxt.cant_return = 0;
|
p->ctxt.cant_return = 0;
|
||||||
$$ = $1;
|
$$ = $fname;
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user