From 78fdea180ef780ce95dfa2ffabe559adace115c4 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 4 May 2018 01:58:43 -0700 Subject: [PATCH] Rename stages -> passes --- schala-codegen/src/lib.rs | 2 +- schala-repl/src/language.rs | 2 +- schala-repl/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schala-codegen/src/lib.rs b/schala-codegen/src/lib.rs index b5c20fe..1054379 100644 --- a/schala-codegen/src/lib.rs +++ b/schala-codegen/src/lib.rs @@ -66,7 +66,7 @@ pub fn derive_programming_language_interface(input: TokenStream) -> TokenStream chain(input) } - fn get_stages(&self) -> Vec { //TODO rename to passes + fn get_passes(&self) -> Vec { vec![ #(#pass_names.to_string()),* ] } } diff --git a/schala-repl/src/language.rs b/schala-repl/src/language.rs index 14ab7ee..34bd1a9 100644 --- a/schala-repl/src/language.rs +++ b/schala-repl/src/language.rs @@ -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 { + fn get_passes(&self) -> Vec { vec![] } fn handle_custom_interpreter_directives(&mut self, _commands: &Vec<&str>) -> Option { diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index 9ba5891..5f5b8ae 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -288,7 +288,7 @@ impl Repl { } } fn handle_debug(&mut self, commands: Vec<&str>) -> Option { - 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") => {