mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Musings about items
This commit is contained in:
parent
b61617f752
commit
bdddfc9eb8
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,14 @@ fn mod_item(p: &mut Parser) {
|
||||||
fn item(p: &mut Parser) -> bool {
|
fn item(p: &mut Parser) -> bool {
|
||||||
attributes::outer_attributes(p);
|
attributes::outer_attributes(p);
|
||||||
visibility(p);
|
visibility(p);
|
||||||
|
// node_if(p, USE_KW, USE_ITEM, use_item)
|
||||||
|
// || extern crate_fn
|
||||||
|
// || node_if(p, STATIC_KW, STATIC_ITEM, static_item)
|
||||||
|
// || node_if(p, CONST_KW, CONST_ITEM, const_item) or const FN!
|
||||||
|
// || unsafe trait, impl
|
||||||
|
// || node_if(p, FN_KW, FN_ITEM, fn_item)
|
||||||
|
// || node_if(p, MOD_KW, MOD_ITEM, mod_item)
|
||||||
|
// || node_if(p, TYPE_KW, TYPE_ITEM, type_item)
|
||||||
node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item)
|
node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item)
|
||||||
|| node_if(p, FN_KW, FN_ITEM, fn_item)
|
|| node_if(p, FN_KW, FN_ITEM, fn_item)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue