rename file -> root

This commit is contained in:
Aleksey Kladov 2018-08-25 11:44:17 +03:00
parent 9fae494a8d
commit cf278ed3bf
160 changed files with 187 additions and 188 deletions

View file

@ -60,8 +60,8 @@ impl ParsedFile {
let root = ::parse(text);
ParsedFile { root }
}
pub fn ast(&self) -> ast::File {
ast::File::cast(self.syntax()).unwrap()
pub fn ast(&self) -> ast::Root {
ast::Root::cast(self.syntax()).unwrap()
}
pub fn syntax(&self) -> SyntaxNodeRef {
self.root.borrowed()