scope based comletion

This commit is contained in:
Aleksey Kladov
2018-08-26 12:09:28 +03:00
parent 4c121bfa2f
commit ac226021cf
8 changed files with 475 additions and 41 deletions

View File

@@ -115,7 +115,7 @@ pub(super) fn maybe_item(p: &mut Parser, flavor: ItemFlavor) -> MaybeItem {
// test unsafe_fn
// unsafe fn foo() {}
FN_KW => {
function(p, flavor);
fn_def(p, flavor);
FN_DEF
}
@@ -227,7 +227,7 @@ fn extern_item_list(p: &mut Parser) {
m.complete(p, EXTERN_ITEM_LIST);
}
fn function(p: &mut Parser, flavor: ItemFlavor) {
fn fn_def(p: &mut Parser, flavor: ItemFlavor) {
assert!(p.at(FN_KW));
p.bump();