Skip to main content

Crate leekscript_lsp

Crate leekscript_lsp 

Source
Expand description

Library surface for leekscript-lsp (used by integration tests and potentially other tools).

The main binary is in main.rs; this crate re-exports types needed for testing the parse/reparse + analysis pipeline.

Structs§

DocumentAnalysis
Result of document-level analysis: source, AST, diagnostics, scope, types, definition map, doc maps, class hierarchy.
TextEdit
A text edit: replace old_source[start..end] with new_text.

Functions§

parse
Parse source as a program (Phase 3/4: list of statements).
reparse
Reparse after a text edit, reusing unchanged parts of the tree.
reparse_or_parse
Apply a text edit and reparse incrementally, or fall back to full parse.