This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
rpeep: maintain chain when handling for(reverse..)
authorDavid Mitchell <davem@iabyn.com>
Wed, 9 Dec 2015 14:27:18 +0000 (14:27 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 9 Dec 2015 14:29:47 +0000 (14:29 +0000)
commit44de5490cef8e95fb52b4a4e4747646f6550121e
treeb8d27e0a09b697aea8a9ce306f7e84c1a8a9f80b
parent58e8b84f23648f1da33b7d173f437a8bcae6e548
rpeep: maintain chain when handling for(reverse..)

There's code in rpeep() that eliminates the reverse op from
for (reverse ....) {} and just flags the enteriter as needing to reverse
its args.

This code didn't leave oldoldop -> oldop -> o as a consistent chain of
adjacent op_next ops.
op.c