Struct erg_compiler::build_hir::HIRBuilder
source · [−]pub struct HIRBuilder { /* private fields */ }
Expand description
Summarize lowering, side-effect checking, and ownership checking
Implementations
sourceimpl HIRBuilder
impl HIRBuilder
pub fn new_with_cache<S: Into<Str>>(
cfg: ErgConfig,
mod_name: S,
mod_cache: SharedModuleCache
) -> Self
pub fn check(&mut self, ast: AST, mode: &str) -> Result<HIR, CompileErrors>
pub fn build(&mut self, src: String, mode: &str) -> Result<HIR, CompileErrors>
pub fn pop_ctx(&mut self) -> Context
Trait Implementations
sourceimpl Debug for HIRBuilder
impl Debug for HIRBuilder
sourceimpl Runnable for HIRBuilder
impl Runnable for HIRBuilder
type Err = CompileError
type Errs = CompileErrors
const NAME: &'static str = "Erg HIR builder"
fn new(cfg: ErgConfig) -> Self
fn cfg(&self) -> &ErgConfig
fn finish(&mut self)
fn clear(&mut self)
fn exec(&mut self) -> Result<(), Self::Errs>
fn eval(&mut self, src: String) -> Result<String, Self::Errs>
fn input(&self) -> &Input
fn start_message(&self) -> String
fn ps1(&self) -> String
fn ps2(&self) -> String
fn quit(&self, code: i32)
fn run(cfg: ErgConfig)
Auto Trait Implementations
impl !RefUnwindSafe for HIRBuilder
impl !Send for HIRBuilder
impl !Sync for HIRBuilder
impl Unpin for HIRBuilder
impl !UnwindSafe for HIRBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more