pub trait ParserGroup: Database + HasQueryGroup<ParserDatabase> + SyntaxGroup + Upcast<dyn SyntaxGroup> + FilesGroup {
    fn priv_file_syntax_data(&self, key0: FileId) -> SyntaxData;
    fn file_syntax(&self, key0: FileId) -> Maybe<Arc<SyntaxFile>>;
    fn file_syntax_diagnostics(
        &self,
        key0: FileId
    ) -> Diagnostics<ParserDiagnostic>; }

Required Methods§

Should only be used internally. Parses a file and returns the result and the generated ParserDiagnostic.

Parses a file and returns its AST.

Returns the parser diagnostics for this file.

Implementors§