Skip to main content

Crate perl_ast_utils

Crate perl_ast_utils 

Source
Expand description

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.