diff options
author | Aleksey Kladov <[email protected]> | 2018-08-25 11:17:54 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-25 11:17:54 +0100 |
commit | fed5727ea2669712e5d85502767b5c150203ecfc (patch) | |
tree | efcc5a784b44177caf5c585f1de9c22a0b715ef4 /crates/libsyntax2/src/grammar/items | |
parent | 32c8ea93074286f3111317fe3077698c0afe929f (diff) |
start incremental reparse
Diffstat (limited to 'crates/libsyntax2/src/grammar/items')
-rw-r--r-- | crates/libsyntax2/src/grammar/items/mod.rs | 4 | ||||
-rw-r--r-- | crates/libsyntax2/src/grammar/items/structs.rs | 2 |
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 @@ | |||
1 | use super::*; | ||
2 | 1 | ||
3 | mod consts; | 2 | mod consts; |
4 | mod structs; | 3 | mod structs; |
5 | mod traits; | 4 | mod traits; |
6 | mod use_item; | 5 | mod use_item; |
7 | 6 | ||
7 | use super::*; | ||
8 | pub(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 | ||
85 | fn named_field_def_list(p: &mut Parser) { | 85 | pub(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(); |