PLS::Parser::Element
This is an abstraction of a PPI::Element with additional functionality.
This is the line number of the element according to PPI.
This is the column number of the element according to PPI.
This is the line number of the element according to the Language Server Protocol.
This is the column number of the element according to the Language Server Protocol.
This is information about the location of the element, to be stored in the index.
This is the content of the element. This is the same as PPI::Element::content.
This is the name of the element. This is the same as the result of content, in the base class.
content
This finds a package name at the given column number inside this element.
This finds a method name in the current element.
This finds a class method within the current element and returns the class and method name.
This finds a fully qualified function call within this element and returns the package and function name.
This finds a variable in the current element and returns its name.
This determines if the cursor at the given column number is on a package name.
This extracts an import within a use statement, which may be a package or function name.
use
This finds the string in a list at a given column number.
This gets a string from a qw quoted list at a given column number.
qw
This provides the range where this element is located, in a format the Language Server Protocol can understand.
This returns the length of this element.
This returns the parent element of this element, as a PLS::Parser::Element object.
This returns the previous significant sibling of this element, as a PLS::Parser::Element object.
This returns the next significant sibling of this element, as a PLS::Parser::Element object.
This returns all of this element's children, as PLS::Parser::Element objects.
This returns all the tokens in the current element, as PLS::Parser::Element objects. Tokens correspond to all of the PPI::Token objects in the current element.
Returns the PPI::Element object for this element.
Returns the type of PPI::Element that this element is associated with.
To install PLS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PLS
CPAN shell
perl -MCPAN -e shell install PLS
For more information on module installation, please visit the detailed CPAN module installation guide.