diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_tools/src/boilerplate_gen.rs (renamed from crates/ra_tools/src/codegen.rs) | 2 | ||||
-rw-r--r-- | crates/ra_tools/src/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_tools/src/codegen.rs b/crates/ra_tools/src/boilerplate_gen.rs index c7f37e20c..5547d6969 100644 --- a/crates/ra_tools/src/codegen.rs +++ b/crates/ra_tools/src/boilerplate_gen.rs | |||
@@ -14,7 +14,7 @@ use serde::Deserialize; | |||
14 | 14 | ||
15 | use crate::{project_root, Mode, Result, AST, GRAMMAR, SYNTAX_KINDS}; | 15 | use crate::{project_root, Mode, Result, AST, GRAMMAR, SYNTAX_KINDS}; |
16 | 16 | ||
17 | pub fn generate(mode: Mode) -> Result<()> { | 17 | pub fn generate_boilerplate(mode: Mode) -> Result<()> { |
18 | let grammar = project_root().join(GRAMMAR); | 18 | let grammar = project_root().join(GRAMMAR); |
19 | let grammar: Grammar = { | 19 | let grammar: Grammar = { |
20 | let text = fs::read_to_string(grammar)?; | 20 | let text = fs::read_to_string(grammar)?; |
diff --git a/crates/ra_tools/src/lib.rs b/crates/ra_tools/src/lib.rs index c02dee953..f1829d55a 100644 --- a/crates/ra_tools/src/lib.rs +++ b/crates/ra_tools/src/lib.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | mod codegen; | 1 | mod boilerplate_gen; |
2 | 2 | ||
3 | use std::{ | 3 | use std::{ |
4 | collections::HashMap, | 4 | collections::HashMap, |
@@ -11,7 +11,7 @@ use std::{ | |||
11 | 11 | ||
12 | use itertools::Itertools; | 12 | use itertools::Itertools; |
13 | 13 | ||
14 | pub use self::codegen::generate; | 14 | pub use self::boilerplate_gen::generate_boilerplate; |
15 | 15 | ||
16 | pub type Result<T> = std::result::Result<T, Box<dyn Error>>; | 16 | pub type Result<T> = std::result::Result<T, Box<dyn Error>>; |
17 | 17 | ||