aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/items
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-25 11:17:54 +0100
committerAleksey Kladov <[email protected]>2018-08-25 11:17:54 +0100
commitfed5727ea2669712e5d85502767b5c150203ecfc (patch)
treeefcc5a784b44177caf5c585f1de9c22a0b715ef4 /crates/libsyntax2/src/grammar/items
parent32c8ea93074286f3111317fe3077698c0afe929f (diff)
start incremental reparse
Diffstat (limited to 'crates/libsyntax2/src/grammar/items')
-rw-r--r--crates/libsyntax2/src/grammar/items/mod.rs4
-rw-r--r--crates/libsyntax2/src/grammar/items/structs.rs2
2 files changed, 4 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs
index 206c85280..44ab92c63 100644
--- a/crates/libsyntax2/src/grammar/items/mod.rs
+++ b/crates/libsyntax2/src/grammar/items/mod.rs
@@ -1,10 +1,12 @@
1use super::*;
2 1
3mod consts; 2mod consts;
4mod structs; 3mod structs;
5mod traits; 4mod traits;
6mod use_item; 5mod use_item;
7 6
7use super::*;
8pub(crate) use self::structs::named_field_def_list;
9
8// test mod_contents 10// test mod_contents
9// fn foo() {} 11// fn foo() {}
10// macro_rules! foo {} 12// macro_rules! foo {}
diff --git a/crates/libsyntax2/src/grammar/items/structs.rs b/crates/libsyntax2/src/grammar/items/structs.rs
index ca027d718..93d3381f8 100644
--- a/crates/libsyntax2/src/grammar/items/structs.rs
+++ b/crates/libsyntax2/src/grammar/items/structs.rs
@@ -82,7 +82,7 @@ fn enum_variant_list(p: &mut Parser) {
82 m.complete(p, ENUM_VARIANT_LIST); 82 m.complete(p, ENUM_VARIANT_LIST);
83} 83}
84 84
85fn named_field_def_list(p: &mut Parser) { 85pub(crate) fn named_field_def_list(p: &mut Parser) {
86 assert!(p.at(L_CURLY)); 86 assert!(p.at(L_CURLY));
87 let m = p.start(); 87 let m = p.start();
88 p.bump(); 88 p.bump();