| 1 | package B::DeparseTree::OPflags; | ||
| 2 | our($VERSION, @EXPORT, @ISA); | ||
| 3 | @ISA = qw(Exporter); | ||
| 4 | $VERSION = '3.2.0'; | ||
| 5 | |||
| 6 | # Various operator flag bits | ||
| 7 | use constant ASSIGN => 2; # has OP= variant | ||
| 8 | use constant LIST_CONTEXT => 4; # Assignment is in list context | ||
| 9 | use constant POSTFIX => 1; # operator can be used as postfix operator | ||
| 10 | use constant SWAP_CHILDREN => 1; # children of op should be reversed | ||
| 11 | |||
| 12 | # Copied from B/const-xs.inc. Perl 5.16 doesn't have this | ||
| 13 | use constant SVpad_STATE => 11; | ||
| 14 | use constant SVpad_TYPED => 8; | ||
| 15 | |||
| 16 | @EXPORT = qw( | ||
| 17 | ASSIGN | ||
| 18 | LIST_CONTEXT | ||
| 19 | POSTFIX | ||
| 20 | SWAP_CHILDREN | ||
| 21 | SVpad_STATE | ||
| 22 | SVpad_TYPED | ||
| 23 | ); | ||
| 24 | |||
| 25 | |||
| 26 | 1; |