aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tools/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-08-19 09:39:12 +0100
committerAleksey Kladov <[email protected]>2019-08-19 09:42:39 +0100
commitaa250ff612b10c02bfbc197557adfd4c70e01e43 (patch)
tree6f383d070e2a50ed0682bce4dba441a42f73eac5 /crates/ra_tools/src
parent5633829a1684fb622d44d1aeb3baede4e7c0ff26 (diff)
rename codegen -> boilerplate_gen
Diffstat (limited to 'crates/ra_tools/src')
-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.rs4
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
15use crate::{project_root, Mode, Result, AST, GRAMMAR, SYNTAX_KINDS}; 15use crate::{project_root, Mode, Result, AST, GRAMMAR, SYNTAX_KINDS};
16 16
17pub fn generate(mode: Mode) -> Result<()> { 17pub 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 @@
1mod codegen; 1mod boilerplate_gen;
2 2
3use std::{ 3use std::{
4 collections::HashMap, 4 collections::HashMap,
@@ -11,7 +11,7 @@ use std::{
11 11
12use itertools::Itertools; 12use itertools::Itertools;
13 13
14pub use self::codegen::generate; 14pub use self::boilerplate_gen::generate_boilerplate;
15 15
16pub type Result<T> = std::result::Result<T, Box<dyn Error>>; 16pub type Result<T> = std::result::Result<T, Box<dyn Error>>;
17 17