cairo_lang_parser::utils

Function get_syntax_root_and_diagnostics_from_file

Source
pub fn get_syntax_root_and_diagnostics_from_file(
    db: &SimpleParserDatabase,
    cairo_filepath: PathBuf,
) -> (SyntaxNode, Diagnostics<ParserDiagnostic>)
Expand description

Reads a cairo file to the db and return the syntax_root and diagnostic of its parsing.