logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

PPIx::Utils::Language - Utility functions for PPI related to the Perl language

Author

       Dan Book <dbook@cpan.org>

       Code originally from Perl::Critic::Utils by Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> and
       Perl::Critic::Utils::Perl by Elliot Shank <perl@galumph.com>

Bugs

       Report any issues on the public bugtracker.

Description

       This package is a component of PPIx::Utils that contains functions related to aspects of the Perl
       language.

Functions

       All functions can be imported by name, or with the tag ":all".

   precedence_of
           my $precedence = precedence_of($element);

       Given a PPI::Token::Operator or a string, returns the precedence of the operator, where 1 is the highest
       precedence.  Returns undef if the precedence can't be determined (which is usually because it is not an
       operator).

   symbol_without_sigil
           my $name = symbol_without_sigil($symbol);

       Returns the name of the specified symbol with any sigil at the front.  The parameter can be a vanilla
       Perl string or a PPI::Element.

Name

       PPIx::Utils::Language - Utility functions for PPI related to the Perl language

See Also

       Perl::Critic::Utils, Perl::Critic::Utils::Perl

perl v5.32.1                                       2021-09-29                         PPIx::Utils::Language(3pm)

Synopsis

           use PPIx::Utils::Language ':all';

See Also