Skip to main content

Crate perl_lsp_type_hierarchy

Crate perl_lsp_type_hierarchy 

Source
Expand description

Type hierarchy provider for Perl inheritance and package relationships.

Supplies textDocument/typeHierarchy data for navigating parent/child package relationships in the Parse → Index → Navigate stages of the LSP workflow.

§Client capability requirements

Clients must advertise the type hierarchy capability to enable textDocument/typeHierarchy requests and responses.

§Protocol compliance

Implements the type hierarchy protocol with LSP symbol kind mappings and stable item identifiers for follow-up requests.

§Examples

use perl_lsp_providers::ide::lsp_compat::type_hierarchy::TypeHierarchyProvider;
use perl_parser_core::Parser;

let mut parser = Parser::new("package Parent; package Child; use parent 'Parent';");
let _ast = parser.parse()?;
let _provider = TypeHierarchyProvider::new();

Structs§

TypeHierarchyItem
Represents a type in the hierarchy
TypeHierarchyProvider
Provider for type hierarchy (inheritance) information

Enums§

TypeHierarchySymbolKind
Kind of symbol in the type hierarchy (LSP protocol values)