pub struct ExprNode { /* private fields */ }
Implementations§
Source§impl ExprNode
impl ExprNode
pub fn is_fn_call(&self) -> bool
pub fn get_closure_params(&self) -> Vec<VariableDeclaration>
pub fn get_variable_name(&self) -> Option<String>
pub fn get_closure_captures(&self) -> Vec<(String, Type)>
pub fn get_expr_mut(&mut self) -> &mut Expr
pub fn get_member_root(&self) -> ExprNode
pub fn is_member(&self) -> bool
Source§impl ExprNode
impl ExprNode
pub fn new(expr: Expr) -> Self
pub fn is_closure(&self) -> bool
pub fn with_position(self, pos: Position) -> Self
pub fn with_type(self, ty: Type) -> Self
pub fn position(&self) -> Position
pub fn get_expr(&self) -> &Expr
pub fn get_type(&self) -> Option<Type>
pub fn get_deep_type(&self) -> Option<Type>
pub fn get_member_name(&self) -> String
Trait Implementations§
Source§impl NodeTrait for ExprNode
impl NodeTrait for ExprNode
fn get_id(&self) -> &str
fn get_data(&self, key: &str) -> Option<Data>
fn set_data(&mut self, key: &str, value: Data)
fn get_children(&self) -> Vec<&dyn NodeTrait>
fn get_mut_children(&mut self) -> Vec<&mut dyn NodeTrait>
fn get_extra(&self) -> &HashMap<String, Box<dyn Any>>
Auto Trait Implementations§
impl Freeze for ExprNode
impl RefUnwindSafe for ExprNode
impl Send for ExprNode
impl Sync for ExprNode
impl Unpin for ExprNode
impl UnwindSafe for ExprNode
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