From c3e5987c433cdd0ea95a6b1057b442f4f0fe1ffc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Aug 2018 14:45:17 +0300 Subject: incremental reparse --- crates/libsyntax2/src/grammar/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/libsyntax2/src/grammar/mod.rs') diff --git a/crates/libsyntax2/src/grammar/mod.rs b/crates/libsyntax2/src/grammar/mod.rs index 46ba8a89a..496d28349 100644 --- a/crates/libsyntax2/src/grammar/mod.rs +++ b/crates/libsyntax2/src/grammar/mod.rs @@ -40,11 +40,11 @@ pub(crate) use self::{ items::named_field_def_list, }; -pub(crate) fn file(p: &mut Parser) { - let file = p.start(); +pub(crate) fn root(p: &mut Parser) { + let m = p.start(); p.eat(SHEBANG); items::mod_contents(p, false); - file.complete(p, ROOT); + m.complete(p, ROOT); } -- cgit v1.2.3