pub struct SemanticAnalyzer { /* private fields */ }Implementations§
Source§impl SemanticAnalyzer
impl SemanticAnalyzer
pub fn new() -> Self
pub fn register_structs(&mut self, structs: &[StructDef])
pub fn register_functions(&mut self, functions: &[Function])
pub fn register_agents(&mut self, agents: &[AgentDef])
pub fn check_program(&mut self, program: &Program) -> Result<(), SemanticError>
pub fn check_stmt(&mut self, stmt: &Stmt) -> Result<(), SemanticError>
Auto Trait Implementations§
impl Freeze for SemanticAnalyzer
impl RefUnwindSafe for SemanticAnalyzer
impl Send for SemanticAnalyzer
impl Sync for SemanticAnalyzer
impl Unpin for SemanticAnalyzer
impl UnsafeUnpin for SemanticAnalyzer
impl UnwindSafe for SemanticAnalyzer
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