pub fn get_syntax_root_and_diagnostics(
db: &SimpleParserDatabase,
file_id: FileId,
contents: &str,
) -> (SyntaxNode, Diagnostics<ParserDiagnostic>)
Expand description
Returns the syntax_root and diagnostic of a file in the db.
pub fn get_syntax_root_and_diagnostics(
db: &SimpleParserDatabase,
file_id: FileId,
contents: &str,
) -> (SyntaxNode, Diagnostics<ParserDiagnostic>)
Returns the syntax_root and diagnostic of a file in the db.