perl-parser 0.14.0

Native Perl parser (v3) — recursive descent with Tree-sitter-compatible AST, semantic analysis, and LSP provider engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use lsp_types::Diagnostic;
use std::ops::Range;

/// Result of incremental reparse
#[derive(Debug)]
#[non_exhaustive]
pub struct ReparseResult {
    pub changed_ranges: Vec<Range<usize>>,
    pub diagnostics: Vec<Diagnostic>,
    pub reparsed_bytes: usize,
    pub reused_tokens: usize,
    pub token_count: usize,
}