Skip to main content

Crate perl_lsp_navigation

Crate perl_lsp_navigation 

Source
Expand description

LSP navigation providers for Perl

This crate provides navigation functionality for Perl code.

§Features

  • Go to definition
  • Find references
  • Go to implementation
  • Go to type definition
  • Type hierarchy
  • Call hierarchy
  • Document links

§Usage

use perl_lsp_navigation::{TypeHierarchyProvider, WorkspaceSymbolsProvider};

let type_hierarchy = TypeHierarchyProvider::new(workspace_index);
let workspace_symbols = WorkspaceSymbolsProvider::new(workspace_index);

Structs§

Location
Represents a location inside a resource, such as a line inside a text file.
TypeDefinitionProvider
Provides go-to-type-definition functionality for Perl code.
TypeHierarchyItem
Represents a type in the hierarchy
TypeHierarchyProvider
Provider for type hierarchy (inheritance) information
WorkspaceSymbol
LSP WorkspaceSymbol representing a symbol found in the workspace.
WorkspaceSymbolsProvider
Workspace symbols provider for LSP workspace/symbol requests.

Enums§

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

Functions§

compute_links
Computes document links for a given Perl document.
find_references_single_file
Return (start_offset, end_offset) for same-file references