pub enum MELCompilerContext {
Expr(Expr<()>),
BinaryOperator(BinaryInfixOperator),
TernaryOperator(TernaryOperator),
Empty,
}Expand description
A context for compilation used when visiting the parse tree.
Variants§
Trait Implementations§
Source§impl Clone for MELCompilerContext
impl Clone for MELCompilerContext
Source§fn clone(&self) -> MELCompilerContext
fn clone(&self) -> MELCompilerContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MELCompilerContext
impl Debug for MELCompilerContext
Source§impl Default for MELCompilerContext
impl Default for MELCompilerContext
Source§fn default() -> MELCompilerContext
fn default() -> MELCompilerContext
Returns the “default value” for a type. Read more
Source§impl SyntaxVisitor<MELCompilerContext> for MELCompiler
impl SyntaxVisitor<MELCompilerContext> for MELCompiler
fn visit_function_call( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_mel( &self, syntax: Node<'_>, context: MELCompilerContext, driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_identifier( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_argument( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_argument_list( &self, syntax: Node<'_>, context: MELCompilerContext, driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_string_concat_operator( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_logic_operator( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_math_operator( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_binary_expr( &self, syntax: Node<'_>, context: MELCompilerContext, driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_ternary_operator( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_ternary_expr( &self, syntax: Node<'_>, context: MELCompilerContext, driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_literal( &self, syntax: Node<'_>, context: MELCompilerContext, driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_boolean_literal( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_number_literal( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_string_literal( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_comparison_operator( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_member_access_expr( &self, syntax: Node<'_>, context: MELCompilerContext, driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_member_access_oper( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_regex_literal( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_ipaddress_literal( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<MELCompilerContext>
fn visit_error( &self, syntax: Node<'_>, _context: MELCompilerContext, _driver: &SyntaxVisitorDriver, ) -> CompilerLocatableError
fn visit_expr( &self, syntax: Node<'_>, context: T, driver: &SyntaxVisitorDriver, ) -> SyntaxVisitorResult<T>
Auto Trait Implementations§
impl Freeze for MELCompilerContext
impl RefUnwindSafe for MELCompilerContext
impl Send for MELCompilerContext
impl Sync for MELCompilerContext
impl Unpin for MELCompilerContext
impl UnsafeUnpin for MELCompilerContext
impl UnwindSafe for MELCompilerContext
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