diff options
Diffstat (limited to 'crates/libsyntax2/src/lib.rs')
-rw-r--r-- | crates/libsyntax2/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/lib.rs b/crates/libsyntax2/src/lib.rs index b3efe2a18..9b45e2575 100644 --- a/crates/libsyntax2/src/lib.rs +++ b/crates/libsyntax2/src/lib.rs | |||
@@ -60,8 +60,8 @@ impl ParsedFile { | |||
60 | let root = ::parse(text); | 60 | let root = ::parse(text); |
61 | ParsedFile { root } | 61 | ParsedFile { root } |
62 | } | 62 | } |
63 | pub fn ast(&self) -> ast::File { | 63 | pub fn ast(&self) -> ast::Root { |
64 | ast::File::cast(self.syntax()).unwrap() | 64 | ast::Root::cast(self.syntax()).unwrap() |
65 | } | 65 | } |
66 | pub fn syntax(&self) -> SyntaxNodeRef { | 66 | pub fn syntax(&self) -> SyntaxNodeRef { |
67 | self.root.borrowed() | 67 | self.root.borrowed() |