Skip to main content

parse_for_editor

Function parse_for_editor 

Source
pub fn parse_for_editor(input: &str) -> ParseResult
Expand description

Parse for editor/LSP use: returns a partial AST plus diagnostics.

Prefer this over parse_root when you want IDE features (outline/hover/semantic tokens) to keep working even when the file contains syntax errors.