| 1 | # Copyright (c) 1998-2000, 2002, 2003, 2004, 2005, 2006 Stephen McCamant. | ||
| 2 | # Copyright (c) 2015, 2018 Rocky Bernstein | ||
| 3 | # All rights reserved. | ||
| 4 | # This module is free software; you can redistribute and/or modify | ||
| 5 | # it under the same terms as Perl itself. | ||
| 6 | |||
| 7 | # This is based on the module B::Deparse (for perl 5.20) by Stephen McCamant. | ||
| 8 | # It has been extended save tree structure, and is addressible | ||
| 9 | # by opcode address. | ||
| 10 | |||
| 11 | # B::Parse in turn is based on the module of the same name by Malcolm Beattie, | ||
| 12 | # but essentially none of his code remains. | ||
| 13 | |||
| 14 | use rlib '../..'; | ||
| 15 | |||
| 16 | package B::DeparseTree::P520; | ||
| 17 | use B::DeparseTree::P518; | ||
| 18 | |||
| 19 | # Copy unchanged functions from B::Deparse | ||
| 20 | *find_scope_st = *B::Deparse::find_scope_st; | ||
| 21 | *meth_rclass_sv = *B::Deparse::meth_rclass_sv; | ||
| 22 | *meth_sv = *B::Deparse::meth_sv; | ||
| 23 | *rv2gv_or_string = *B::Deparse::rv2gv_or_string; | ||
| 24 | |||
| 25 | use strict; | ||
| 26 | use warnings (); | ||
| 27 | |||
| 28 | our(@EXPORT, @ISA); | ||
| 29 | our $VERSION = '3.2.0'; | ||
| 30 | |||
| 31 | @ISA = qw(B::DeparseTree::P518); | ||
| 32 | |||
| 33 | 1; |