StructTypeContext

Type Alias StructTypeContext 

Source
pub type StructTypeContext<'input> = BaseParserRuleContext<'input, StructTypeContextExt<'input>>;

Aliased Type§

pub struct StructTypeContext<'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> Borrow<HamelintypeContextExt<'input>> for StructTypeContext<'input>

Source§

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

Immutably borrows from an owned value. Read more
Source§

impl<'input> BorrowMut<HamelintypeContextExt<'input>> for StructTypeContext<'input>

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<'input, 'a> Listenable<dyn HamelinListener<'input> + 'a> for StructTypeContext<'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> StructTypeContextAttrs<'input> for StructTypeContext<'input>

Source§

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

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

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

Source§

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

Source§

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

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

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

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

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

Source§

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

Source§

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

Retrieves first TerminalNode corresponding to token RCURLY Returns None if there is no child corresponding to token RCURLY
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, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for StructTypeContext<'input>

Source§

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

Calls corresponding visit callback on visitorVis
Source§

impl<'input> HamelinParserContext<'input> for StructTypeContext<'input>

Source§

impl<'input> HamelintypeContextAttrs<'input> for StructTypeContext<'input>