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§
Sourcefn root_children(&self) -> SyntaxNodeChildren<OnlyLanguage> ⓘ
fn root_children(&self) -> SyntaxNodeChildren<OnlyLanguage> ⓘ
Returns root CST children for top-level inspection.
Sourcefn diagnostics(&self) -> &[Diagnostic]
fn diagnostics(&self) -> &[Diagnostic]
Returns collected parse diagnostics.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".