This commit is contained in:
Lukas Wirth 2024-03-04 11:10:06 +01:00
parent 4ef6a49b44
commit 4303e741de
42 changed files with 433 additions and 468 deletions

View file

@ -168,6 +168,7 @@ pub use crate::ast::SourceFile;
impl SourceFile {
pub fn parse(text: &str) -> Parse<SourceFile> {
let _p = tracing::span!(tracing::Level::INFO, "SourceFile::parse").entered();
let (green, mut errors) = parsing::parse_text(text);
let root = SyntaxNode::new_root(green.clone());