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>
impl<'input> ArrayLiteralContextAttrs<'input> for ArrayLiteralContext<'input>
Source§fn LBRACKET(&self) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
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 LBRACKETSource§fn RBRACKET(&self) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
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 RBRACKETfn expression_all(&self) -> Vec<Rc<ExpressionContextAll<'input>>>where
Self: Sized,
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,
fn COMMA_all(&self) -> Vec<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
Retrieves all
TerminalNodes corresponding to token COMMA in current ruleSource§fn COMMA(
&self,
i: usize,
) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
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>
impl<'input> Borrow<ExpressionContextExt<'input>> for ArrayLiteralContext<'input>
Source§fn borrow(&self) -> &ExpressionContextExt<'input>
fn borrow(&self) -> &ExpressionContextExt<'input>
Immutably borrows from an owned value. Read more
Source§impl<'input> BorrowMut<ExpressionContextExt<'input>> for ArrayLiteralContext<'input>
impl<'input> BorrowMut<ExpressionContextExt<'input>> for ArrayLiteralContext<'input>
Source§fn borrow_mut(&mut self) -> &mut ExpressionContextExt<'input>
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>
impl<'input, 'a> Listenable<dyn HamelinListener<'input> + 'a> for ArrayLiteralContext<'input>
Source§fn enter(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
fn enter(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
Calls corresponding enter callback on listener
TSource§fn exit(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
fn exit(&self, listener: &mut (dyn HamelinListener<'input> + 'a))
Calls corresponding exit callback on listener
TSource§impl<'input, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for ArrayLiteralContext<'input>
impl<'input, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for ArrayLiteralContext<'input>
Source§fn accept(&self, visitor: &mut (dyn HamelinVisitor<'input> + 'a))
fn accept(&self, visitor: &mut (dyn HamelinVisitor<'input> + 'a))
Calls corresponding visit callback on visitor
Vis