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§
- Type
Hierarchy Item - Represents a type in the hierarchy
- Type
Hierarchy Provider - Provider for type hierarchy (inheritance) information
Enums§
- Type
Hierarchy Symbol Kind - Kind of symbol in the type hierarchy (LSP protocol values)