From 220d285b4afb250e59a08e9b1ad38c2fc2275782 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Aug 2018 11:44:58 +0300 Subject: rename ParsedFile -> File --- crates/libsyntax2/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/libsyntax2') diff --git a/crates/libsyntax2/src/lib.rs b/crates/libsyntax2/src/lib.rs index 9b45e2575..ab4a40435 100644 --- a/crates/libsyntax2/src/lib.rs +++ b/crates/libsyntax2/src/lib.rs @@ -51,14 +51,14 @@ pub use { }; #[derive(Clone, Debug)] -pub struct ParsedFile { +pub struct File { root: SyntaxNode } -impl ParsedFile { +impl File { pub fn parse(text: &str) -> Self { let root = ::parse(text); - ParsedFile { root } + File { root } } pub fn ast(&self) -> ast::Root { ast::Root::cast(self.syntax()).unwrap() -- cgit v1.2.3