Struct pylyzer::PythonAnalyzer
source · pub struct PythonAnalyzer {
pub cfg: ErgConfig,
/* private fields */
}
Fields§
§cfg: ErgConfig
Implementations§
Trait Implementations§
source§impl Buildable<HIR> for PythonAnalyzer
impl Buildable<HIR> for PythonAnalyzer
fn inherit(cfg: ErgConfig, shared: SharedCompilerResource) -> Self
fn build( &mut self, code: String, mode: &str ) -> Result<CompleteArtifact, IncompleteArtifact>
fn pop_context(&mut self) -> Option<ModuleContext>
fn get_context(&self) -> Option<&ModuleContext>
source§impl Debug for PythonAnalyzer
impl Debug for PythonAnalyzer
source§impl Default for PythonAnalyzer
impl Default for PythonAnalyzer
source§fn default() -> PythonAnalyzer
fn default() -> PythonAnalyzer
Returns the “default value” for a type. Read more
source§impl Runnable for PythonAnalyzer
impl Runnable for PythonAnalyzer
type Err = CompileError
type Errs = CompileErrors
const NAME: &'static str = "Python Analyzer"
fn new(cfg: ErgConfig) -> Self
fn cfg(&self) -> &ErgConfig
fn cfg_mut(&mut self) -> &mut ErgConfig
fn finish(&mut self)
source§fn initialize(&mut self)
fn initialize(&mut self)
Erase all but immutable information.
fn eval(&mut self, src: String) -> Result<String, Self::Errs>
fn exec(&mut self) -> Result<ExitStatus, Self::Errs>
fn expect_block(&self, src: &str) -> BlockKind
fn input(&self) -> &Input
fn set_input(&mut self, input: Input)
fn start_message(&self) -> String
fn ps1(&self) -> String
fn ps2(&self) -> String
fn quit(&mut self, code: i32) -> !
fn quit_successfully(&mut self, output: BufWriter<StdoutLock<'_>>) -> !
fn run(cfg: ErgConfig) -> ExitStatus
impl BuildRunnable<HIR> for PythonAnalyzer
Auto Trait Implementations§
impl !RefUnwindSafe for PythonAnalyzer
impl !Send for PythonAnalyzer
impl !Sync for PythonAnalyzer
impl Unpin for PythonAnalyzer
impl !UnwindSafe for PythonAnalyzer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more