gbf_core/decompiler/
execution_frame.rs#![deny(missing_docs)]
use std::fmt::Display;
use super::ast::{expr::ExprKind, AstKind};
#[derive(Debug, PartialEq, Clone)]
pub enum ExecutionFrame {
StandaloneNode(AstKind),
BuildingArray(Vec<ExprKind>),
None,
}
impl Display for ExecutionFrame {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
ExecutionFrame::BuildingArray(_) => write!(f, "BuildingArray"),
ExecutionFrame::None => write!(f, "None"),
ExecutionFrame::StandaloneNode(_) => write!(f, "StandaloneNode"),
}
}
}