mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
rename file -> root
This commit is contained in:
parent
9fae494a8d
commit
cf278ed3bf
160 changed files with 187 additions and 188 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue