Skip to main content

snapshot

Function snapshot 

Source
pub fn snapshot(source: &str) -> SyntaxSnapshot
Expand description

Lexes and parses source text into an immutable syntax snapshot.

Args: source: Raw Onlyfile source text.

Returns: Snapshot containing tokens, CST and syntax diagnostics.