Subject: | PPI::Statement::location() returns undef for C<({})>. |
For the expression ({}), the Statement around the Constructor returns undef for location().
Output from running ppidump from the Perl::Critic tools directory like "tools/ppidump '({})'":
PPI::Document
PPI::Statement
PPI::Structure::List ( ... )
PPI::Statement
PPI::Structure::Constructor { ... }
Perl::Critic repository version 1033 contains a workaround. See diff: http://tinyurl.com/twup4
perl v5.8.8, Mac OS X 10.4.8.