Split ItemList & AssocItemList

This commit is contained in:
Aleksey Kladov 2020-07-30 11:42:51 +02:00
parent 72ffd851dd
commit 2984da672e
14 changed files with 131 additions and 89 deletions

View file

@ -50,7 +50,7 @@ pub(crate) fn trait_item_list(p: &mut Parser) {
item_or_macro(p, true, ItemFlavor::Trait);
}
p.expect(T!['}']);
m.complete(p, ITEM_LIST);
m.complete(p, ASSOC_ITEM_LIST);
}
// test impl_def
@ -107,7 +107,7 @@ pub(crate) fn impl_item_list(p: &mut Parser) {
item_or_macro(p, true, ItemFlavor::Mod);
}
p.expect(T!['}']);
m.complete(p, ITEM_LIST);
m.complete(p, ASSOC_ITEM_LIST);
}
// test impl_type_params

View file

@ -213,6 +213,7 @@ pub enum SyntaxKind {
TUPLE_FIELD_DEF,
ENUM_VARIANT_LIST,
ITEM_LIST,
ASSOC_ITEM_LIST,
ATTR,
META_ITEM,
USE_TREE,