Subject: | Devel::MAT cannot see line number of `method`s |
A regular `sub`:
Show quoted text
pmat> show 0x5635d56841d0
CODE(PP,closure) at 0x5635d56841d0 with refcount 1
...
location=t/31pad-outside.t line 41
A `method`:
Show quoted textpmat> show 0x563e600291d0
...
location=t/31pad-outside.t
Likely has to do with the optree structure not starting with an OP_NEXTSTATE in the right arrangement.
https://metacpan.org/source/PEVANS/Devel-MAT-Dumper-0.41/lib/Devel/MAT/Dumper.xs#L549-550
if(start->op_type == OP_NEXTSTATE)
line = CopLINE((COP*)start);
--
Paul Evans