diff options
author | Aleksey Kladov <[email protected]> | 2020-04-09 15:17:18 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-09 15:17:18 +0100 |
commit | d61932ef7e74f3d9f7863c33c6647c2c52538ed5 (patch) | |
tree | d8f52aafe87bbc34e09fe9c181369a5523097b2b /xtask | |
parent | 0fc8c5cca01501b3b6b708b0ba9ba94c0a81f69e (diff) |
Prepare for spliting generated into tokens and nodes
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen.rs | 2 | ||||
-rw-r--r-- | xtask/src/codegen/gen_syntax.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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"; | |||
23 | const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err"; | 23 | const ERR_INLINE_TESTS_DIR: &str = "crates/ra_syntax/test_data/parser/inline/err"; |
24 | 24 | ||
25 | const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs"; | 25 | const SYNTAX_KINDS: &str = "crates/ra_parser/src/syntax_kind/generated.rs"; |
26 | const AST: &str = "crates/ra_syntax/src/ast/generated.rs"; | 26 | const AST_NODES: &str = "crates/ra_syntax/src/ast/generated/nodes.rs"; |
27 | 27 | ||
28 | const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers"; | 28 | const ASSISTS_DIR: &str = "crates/ra_assists/src/handlers"; |
29 | const ASSISTS_TESTS: &str = "crates/ra_assists/src/doc_tests/generated.rs"; | 29 | 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<()> { | |||
22 | let syntax_kinds = generate_syntax_kinds(KINDS_SRC)?; | 22 | let syntax_kinds = generate_syntax_kinds(KINDS_SRC)?; |
23 | update(syntax_kinds_file.as_path(), &syntax_kinds, mode)?; | 23 | update(syntax_kinds_file.as_path(), &syntax_kinds, mode)?; |
24 | 24 | ||
25 | let ast_file = project_root().join(codegen::AST); | 25 | let ast_file = project_root().join(codegen::AST_NODES); |
26 | let ast = generate_ast(KINDS_SRC, AST_SRC)?; | 26 | let ast = generate_ast(KINDS_SRC, AST_SRC)?; |
27 | update(ast_file.as_path(), &ast, mode)?; | 27 | update(ast_file.as_path(), &ast, mode)?; |
28 | 28 | ||