This commit is contained in:
Aleksey Kladov
2018-08-17 22:03:55 +03:00
parent d3c90ded2b
commit c7b1be6be3
4 changed files with 11 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ impl ParsedFile {
File::cast(self.syntax()).unwrap()
}
pub fn syntax(&self) -> SyntaxNodeRef {
self.root.as_ref()
self.root.borrowed()
}
pub fn errors(&self) -> Vec<SyntaxError> {
self.syntax().root.syntax_root().errors.clone()