aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-25 12:45:17 +0100
committerAleksey Kladov <[email protected]>2018-08-25 12:45:17 +0100
commitc3e5987c433cdd0ea95a6b1057b442f4f0fe1ffc (patch)
tree1ef2814a3ddc800ef6976aa0459c6b5cf0c3b621 /crates/libsyntax2/src/grammar
parent5211e7d97771aa7f8d7cc99e5131fb3cc71a1627 (diff)
incremental reparse
Diffstat (limited to 'crates/libsyntax2/src/grammar')
-rw-r--r--crates/libsyntax2/src/grammar/mod.rs6
1 files changed, 3 insertions, 3 deletions
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::{
40 items::named_field_def_list, 40 items::named_field_def_list,
41}; 41};
42 42
43pub(crate) fn file(p: &mut Parser) { 43pub(crate) fn root(p: &mut Parser) {
44 let file = p.start(); 44 let m = p.start();
45 p.eat(SHEBANG); 45 p.eat(SHEBANG);
46 items::mod_contents(p, false); 46 items::mod_contents(p, false);
47 file.complete(p, ROOT); 47 m.complete(p, ROOT);
48} 48}
49 49
50 50