ArrayLiteralContext

Type Alias ArrayLiteralContext 

Source
pub type ArrayLiteralContext<'input> = BaseParserRuleContext<'input, ArrayLiteralContextExt<'input>>;

Aliased Type§

pub struct ArrayLiteralContext<'input> {
    pub exception: Option<Box<ANTLRError>>,
    /* private fields */
}

Fields§

§exception: Option<Box<ANTLRError>>

error if there was any in this node

Trait Implementations§

Source§

impl<'input> ArrayLiteralContextAttrs<'input> for ArrayLiteralContext<'input>

Source§

fn LBRACKET(&self) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>
where Self: Sized,

Retrieves first TerminalNode corresponding to token LBRACKET Returns None if there is no child corresponding to token LBRACKET
Source§

fn RBRACKET(&self) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>
where Self: Sized,

Retrieves first TerminalNode corresponding to token RBRACKET Returns None if there is no child corresponding to token RBRACKET
Source§

fn expression_all(&self) -> Vec<Rc<ExpressionContextAll<'input>>>
where Self: Sized,

Source§

fn expression(&self, i: usize) -> Option<Rc<ExpressionContextAll<'input>>>
where Self: Sized,

Source§

fn COMMA_all(&self) -> Vec<Rc<TerminalNode<'input, HamelinParserContextType>>>
where Self: Sized,

Retrieves all TerminalNodes corresponding to token COMMA in current rule
Source§

fn COMMA( &self, i: usize, ) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>
where Self: Sized,

Retrieves ’i’s TerminalNode corresponding to token COMMA, starting from 0. Returns None if number of children corresponding to token COMMA is less or equal than i.
Source§

impl<'input> Borrow<ExpressionContextExt<'input>> for ArrayLiteralContext<'input>

Source§

fn borrow(&self) -> &ExpressionContextExt<'input>

Immutably borrows from an owned value. Read more
Source§

impl<'input> BorrowMut<ExpressionContextExt<'input>> for ArrayLiteralContext<'input>

Source§

fn borrow_mut(&mut self) -> &mut ExpressionContextExt<'input>

Mutably borrows from an owned value. Read more
Source§

impl<'input, 'a> Listenable<dyn HamelinListener<'input> + 'a> for ArrayLiteralContext<'input>

Source§

fn enter(&self, listener: &mut (dyn HamelinListener<'input> + 'a))

Calls corresponding enter callback on listener T
Source§

fn exit(&self, listener: &mut (dyn HamelinListener<'input> + 'a))

Calls corresponding exit callback on listener T
Source§

impl<'input, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for ArrayLiteralContext<'input>

Source§

fn accept(&self, visitor: &mut (dyn HamelinVisitor<'input> + 'a))

Calls corresponding visit callback on visitorVis
Source§

impl<'input> ExpressionContextAttrs<'input> for ArrayLiteralContext<'input>

Source§

impl<'input> HamelinParserContext<'input> for ArrayLiteralContext<'input>