diff options
author | Aleksey Kladov <[email protected]> | 2018-08-26 10:09:28 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-26 10:09:28 +0100 |
commit | ac226021cfd26a9332b5971f3e05118d77822af5 (patch) | |
tree | 04e9d19956b74d551f798bf26f420fa978b8f30f /crates/libsyntax2/src/grammar/items/mod.rs | |
parent | 4c121bfa2f2a7a06f01143e3203c650156e2fb4e (diff) |
scope based comletion
Diffstat (limited to 'crates/libsyntax2/src/grammar/items/mod.rs')
-rw-r--r-- | crates/libsyntax2/src/grammar/items/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar/items/mod.rs b/crates/libsyntax2/src/grammar/items/mod.rs index a285892df..7c6f7b63e 100644 --- a/crates/libsyntax2/src/grammar/items/mod.rs +++ b/crates/libsyntax2/src/grammar/items/mod.rs | |||
@@ -115,7 +115,7 @@ pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem { | |||
115 | // test unsafe_fn | 115 | // test unsafe_fn |
116 | // unsafe fn foo() {} | 116 | // unsafe fn foo() {} |
117 | FN_KW => { | 117 | FN_KW => { |
118 | function(p, flavor); | 118 | fn_def(p, flavor); |
119 | FN_DEF | 119 | FN_DEF |
120 | } | 120 | } |
121 | 121 | ||
@@ -227,7 +227,7 @@ fn extern_item_list(p: &mut Parser) { | |||
227 | m.complete(p, EXTERN_ITEM_LIST); | 227 | m.complete(p, EXTERN_ITEM_LIST); |
228 | } | 228 | } |
229 | 229 | ||
230 | fn function(p: &mut Parser, flavor: ItemFlavor) { | 230 | fn fn_def(p: &mut Parser, flavor: ItemFlavor) { |
231 | assert!(p.at(FN_KW)); | 231 | assert!(p.at(FN_KW)); |
232 | p.bump(); | 232 | p.bump(); |
233 | 233 | ||