mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
update test data
This commit is contained in:
parent
bc2550b196
commit
310bfe57bd
45 changed files with 290 additions and 289 deletions
|
@ -92,8 +92,9 @@ impl SourceFile {
|
|||
}
|
||||
|
||||
pub fn parse2(text: &str) -> Parse {
|
||||
let (green, errors) = parsing::parse_text(text);
|
||||
let (green, mut errors) = parsing::parse_text(text);
|
||||
let tree = SourceFile::new(green);
|
||||
errors.extend(validation::validate(&tree));
|
||||
Parse { tree, errors: Arc::new(errors) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue