mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Split ItemList & AssocItemList
This commit is contained in:
parent
72ffd851dd
commit
2984da672e
14 changed files with 131 additions and 89 deletions
|
@ -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
|
||||
|
|
|
@ -213,6 +213,7 @@ pub enum SyntaxKind {
|
|||
TUPLE_FIELD_DEF,
|
||||
ENUM_VARIANT_LIST,
|
||||
ITEM_LIST,
|
||||
ASSOC_ITEM_LIST,
|
||||
ATTR,
|
||||
META_ITEM,
|
||||
USE_TREE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue