Merge branch 'main' into pylyzer-mode

This commit is contained in:
Shunsuke Shibayama 2022-12-14 09:23:47 +09:00
commit 3d69353bf6
9 changed files with 36 additions and 0 deletions

View file

@ -40,6 +40,10 @@ impl Runnable for HIRBuilder {
fn cfg(&self) -> &ErgConfig {
self.lowerer.cfg()
}
#[inline]
fn cfg_mut(&mut self) -> &mut ErgConfig {
self.lowerer.cfg_mut()
}
#[inline]
fn finish(&mut self) {}

View file

@ -127,6 +127,10 @@ impl Runnable for Compiler {
fn cfg(&self) -> &ErgConfig {
&self.cfg
}
#[inline]
fn cfg_mut(&mut self) -> &mut ErgConfig {
&mut self.cfg
}
#[inline]
fn finish(&mut self) {}

View file

@ -71,6 +71,10 @@ impl Runnable for ASTLowerer {
fn cfg(&self) -> &ErgConfig {
&self.cfg
}
#[inline]
fn cfg_mut(&mut self) -> &mut ErgConfig {
&mut self.cfg
}
fn new(cfg: ErgConfig) -> Self {
Self::new_with_cache(

View file

@ -124,6 +124,10 @@ impl Runnable for Transpiler {
fn cfg(&self) -> &ErgConfig {
&self.cfg
}
#[inline]
fn cfg_mut(&mut self) -> &mut ErgConfig {
&mut self.cfg
}
#[inline]
fn finish(&mut self) {}