Rename stages -> passes
This commit is contained in:
parent
00e68d09c7
commit
78fdea180e
@ -66,7 +66,7 @@ pub fn derive_programming_language_interface(input: TokenStream) -> TokenStream
|
||||
chain(input)
|
||||
}
|
||||
|
||||
fn get_stages(&self) -> Vec<String> { //TODO rename to passes
|
||||
fn get_passes(&self) -> Vec<String> {
|
||||
vec![ #(#pass_names.to_string()),* ]
|
||||
}
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ pub trait ProgrammingLanguageInterface {
|
||||
|
||||
fn get_language_name(&self) -> String;
|
||||
fn get_source_file_suffix(&self) -> String;
|
||||
fn get_stages(&self) -> Vec<String> {
|
||||
fn get_passes(&self) -> Vec<String> {
|
||||
vec![]
|
||||
}
|
||||
fn handle_custom_interpreter_directives(&mut self, _commands: &Vec<&str>) -> Option<String> {
|
||||
|
@ -288,7 +288,7 @@ impl Repl {
|
||||
}
|
||||
}
|
||||
fn handle_debug(&mut self, commands: Vec<&str>) -> Option<String> {
|
||||
let passes = self.get_cur_language().get_stages();
|
||||
let passes = self.get_cur_language().get_passes();
|
||||
match commands.get(1) {
|
||||
Some(&"passes") => Some(passes.into_iter().intersperse(format!(" -> ")).collect()),
|
||||
b @ Some(&"show") | b @ Some(&"hide") => {
|
||||
|
Loading…
Reference in New Issue
Block a user