Perl-Critic / PPI

53 stars 44 forks source link

split out checked document creation in test helper module #283

Closed wchristian closed 2 years ago

wchristian commented 2 years ago

This primarily creates safe_new, which is PPI::Document->new, but reports an error if one happened while parsing.

Also fixes the issue that is() wasn't imported, abbreviates the Exporter usage a little (parent is more backwards-compatible, and already in the deps via Params::Util), and adds some docs.