mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Prepare for spliting generated into tokens and nodes
This commit is contained in:
parent
0fc8c5cca0
commit
d61932ef7e
5 changed files with 9630 additions and 9627 deletions
|
@ -21,7 +21,7 @@ pub use self::{
|
|||
AttrKind, FieldKind, PathSegmentKind, SelfParamKind, SlicePatComponents, StructKind,
|
||||
TypeBoundKind, VisibilityKind,
|
||||
},
|
||||
generated::*,
|
||||
generated::nodes::*,
|
||||
tokens::*,
|
||||
traits::*,
|
||||
};
|
||||
|
|
File diff suppressed because it is too large
Load diff
9625
crates/ra_syntax/src/ast/generated/nodes.rs
Normal file
9625
crates/ra_syntax/src/ast/generated/nodes.rs
Normal file
File diff suppressed because it is too large
Load diff
|
@ -23,7 +23,7 @@ const OK_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/ok";
|
|||
const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err";
|
||||
|
||||
const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs";
|
||||
const AST: &str = "crates/ra_syntax/src/ast/generated.rs";
|
||||
const AST_NODES: &str = "crates/ra_syntax/src/ast/generated/nodes.rs";
|
||||
|
||||
const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers";
|
||||
const ASSISTS_TESTS: &str = "crates/ra_assists/src/doc_tests/generated.rs";
|
||||
|
|
|
@ -22,7 +22,7 @@ pub fn generate_syntax(mode: Mode) -> Result<()> {
|
|||
let syntax_kinds = generate_syntax_kinds(KINDS_SRC)?;
|
||||
update(syntax_kinds_file.as_path(), &syntax_kinds, mode)?;
|
||||
|
||||
let ast_file = project_root().join(codegen::AST);
|
||||
let ast_file = project_root().join(codegen::AST_NODES);
|
||||
let ast = generate_ast(KINDS_SRC, AST_SRC)?;
|
||||
update(ast_file.as_path(), &ast, mode)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue