Skip to main content

Module ast_utils

Module ast_utils 

Source
Expand description

AST range and insertion helpers for Perl LSP features (previously perl-ast-utils). AST utilities for Perl LSP microcrates.

This crate has a narrow responsibility: provide AST and source-text helpers used by higher-level LSP features (for example, code actions).

Functions§

find_declaration_position
Find the best position to insert a declaration.
find_function_insert_position
Find a good position to insert a function.
find_node_at_range
Find the most specific node covering the provided byte range.
find_statement_start
Find the start of the current statement.
get_indent_at
Get indentation at a position.