Rename stages -> passes

This commit is contained in:
greg 2018-05-04 01:58:43 -07:00
parent 00e68d09c7
commit 78fdea180e
3 changed files with 3 additions and 3 deletions

View File

@ -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()),* ]
}
}

View File

@ -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> {

View File

@ -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") => {