From d61932ef7e74f3d9f7863c33c6647c2c52538ed5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Apr 2020 16:17:18 +0200 Subject: Prepare for spliting generated into tokens and nodes --- xtask/src/codegen.rs | 2 +- xtask/src/codegen/gen_syntax.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xtask/src') diff --git a/xtask/src/codegen.rs b/xtask/src/codegen.rs index 104399f7f..e6ba2009c 100644 --- a/xtask/src/codegen.rs +++ b/xtask/src/codegen.rs @@ -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"; diff --git a/xtask/src/codegen/gen_syntax.rs b/xtask/src/codegen/gen_syntax.rs index af7d4ffac..c2734d638 100644 --- a/xtask/src/codegen/gen_syntax.rs +++ b/xtask/src/codegen/gen_syntax.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)?; -- cgit v1.2.3