Skip to main content

ParseResultExt

Trait ParseResultExt 

Source
pub trait ParseResultExt {
    // Required methods
    fn root_children(&self) -> SyntaxNodeChildren<OnlyLanguage>;
    fn diagnostics(&self) -> &[Diagnostic];
}
Expand description

Extension helpers for parse results used by hosts and tests.

Required Methods§

Source

fn root_children(&self) -> SyntaxNodeChildren<OnlyLanguage>

Returns root CST children for top-level inspection.

Source

fn diagnostics(&self) -> &[Diagnostic]

Returns collected parse diagnostics.

Implementors§