mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Generate only minimal set of ineresting tokens
This commit is contained in:
parent
8d71a6bf0c
commit
4560fe2abf
8 changed files with 61 additions and 1306 deletions
|
@ -225,6 +225,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
|
|||
};
|
||||
|
||||
pub(crate) struct AstSrc<'a> {
|
||||
pub(crate) tokens: &'a [&'a str],
|
||||
pub(crate) nodes: &'a [AstNodeSrc<'a>],
|
||||
pub(crate) enums: &'a [AstEnumSrc<'a>],
|
||||
}
|
||||
|
@ -303,6 +304,7 @@ macro_rules! ast_enums {
|
|||
}
|
||||
|
||||
pub(crate) const AST_SRC: AstSrc = AstSrc {
|
||||
tokens: &["Whitespace", "Comment", "String", "RawString"],
|
||||
nodes: &ast_nodes! {
|
||||
struct SourceFile: ModuleItemOwner, AttrsOwner {
|
||||
modules: [Module],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue