]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Handle __PACKAGE__ as object name correctly rt88428
authorVincent Pit <vince@profvince.com>
Thu, 5 Sep 2013 11:02:10 +0000 (13:02 +0200)
committerVincent Pit <vince@profvince.com>
Thu, 5 Sep 2013 11:18:48 +0000 (13:18 +0200)
__PACKAGE__ cannot appear as the object name for indirect calls, but it
can for direct ones. This could cause wrong reports of indirect calls
when the actual package name appeared later in the source, for instance
in a comment. This is fixed by looking for '__PACKAGE__' in the source
buffer when we already have a hit for the current package name, and by
keeping the first one of those two.

This fixes RT #88428.


No differences found