mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
add top level tests for types
This commit is contained in:
parent
e78424846e
commit
640cc27ff0
3 changed files with 65 additions and 1 deletions
|
@ -110,6 +110,8 @@ pub enum TopEntryPoint {
|
|||
Pattern,
|
||||
Type,
|
||||
Expr,
|
||||
/// Edge case -- macros generally don't expand to attributes, with the
|
||||
/// exception of `cfg_attr` which does!
|
||||
MetaItem,
|
||||
}
|
||||
|
||||
|
@ -120,8 +122,8 @@ impl TopEntryPoint {
|
|||
TopEntryPoint::MacroStmts => grammar::entry::top::macro_stmts,
|
||||
TopEntryPoint::MacroItems => grammar::entry::top::macro_items,
|
||||
TopEntryPoint::Pattern => grammar::entry::top::pattern,
|
||||
TopEntryPoint::Type => grammar::entry::top::type_,
|
||||
// FIXME
|
||||
TopEntryPoint::Type => grammar::entry::prefix::ty,
|
||||
TopEntryPoint::Expr => grammar::entry::prefix::expr,
|
||||
TopEntryPoint::MetaItem => grammar::entry::prefix::meta_item,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue