mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
Do cargo fmt
This commit is contained in:
parent
e320bd6cdd
commit
6726d93f65
48 changed files with 7294 additions and 3469 deletions
|
@ -1,15 +1,17 @@
|
|||
use crate::error::CompileWarnings;
|
||||
use crate::hir::HIR;
|
||||
use crate::error::{CompileWarnings};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct HIROptimizer {
|
||||
|
||||
}
|
||||
pub struct HIROptimizer {}
|
||||
|
||||
impl HIROptimizer {
|
||||
pub fn fold_constants(&mut self, mut _hir: HIR) -> HIR { todo!() }
|
||||
pub fn fold_constants(&mut self, mut _hir: HIR) -> HIR {
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn eliminate_unused_variables(&mut self, mut _hir: HIR) -> (HIR, CompileWarnings) { todo!() }
|
||||
pub fn eliminate_unused_variables(&mut self, mut _hir: HIR) -> (HIR, CompileWarnings) {
|
||||
todo!()
|
||||
}
|
||||
|
||||
pub fn eliminate_dead_code(&mut self, mut _hir: HIR) -> (HIR, CompileWarnings) {
|
||||
todo!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue