mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
Update ErgConfig
and Runnable
This commit is contained in:
parent
d7ffb211a8
commit
d2ad7caaab
8 changed files with 42 additions and 26 deletions
|
@ -116,8 +116,8 @@ impl Runnable for Compiler {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn input(&self) -> &Input {
|
||||
&self.cfg.input
|
||||
fn cfg(&self) -> &ErgConfig {
|
||||
&self.cfg
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
@ -41,6 +41,11 @@ impl Runnable for ASTLowererRunner {
|
|||
type Errs = CompileErrors;
|
||||
const NAME: &'static str = "Erg lowerer";
|
||||
|
||||
#[inline]
|
||||
fn cfg(&self) -> &ErgConfig {
|
||||
&self.cfg
|
||||
}
|
||||
|
||||
fn new(cfg: ErgConfig) -> Self {
|
||||
Self {
|
||||
cfg,
|
||||
|
@ -48,11 +53,6 @@ impl Runnable for ASTLowererRunner {
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn input(&self) -> &Input {
|
||||
&self.cfg.input
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn finish(&mut self) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue