incremental reparse

This commit is contained in:
Aleksey Kladov
2018-08-25 14:45:17 +03:00
parent 5211e7d977
commit c3e5987c43
5 changed files with 104 additions and 13 deletions

View File

@@ -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);
}