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>
impl<'input> Borrow<HamelintypeContextExt<'input>> for StructTypeContext<'input>
Source§fn borrow(&self) -> &HamelintypeContextExt<'input>
fn borrow(&self) -> &HamelintypeContextExt<'input>
Immutably borrows from an owned value. Read more
Source§impl<'input> BorrowMut<HamelintypeContextExt<'input>> for StructTypeContext<'input>
impl<'input> BorrowMut<HamelintypeContextExt<'input>> for StructTypeContext<'input>
Source§fn borrow_mut(&mut self) -> &mut HamelintypeContextExt<'input>
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>
impl<'input, 'a> Listenable<dyn HamelinListener<'input> + 'a> for StructTypeContext<'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> StructTypeContextAttrs<'input> for StructTypeContext<'input>
impl<'input> StructTypeContextAttrs<'input> for StructTypeContext<'input>
Source§fn LCURLY(&self) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
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 LCURLYfn simpleIdentifier_all(&self) -> Vec<Rc<SimpleIdentifierContextAll<'input>>>where
Self: Sized,
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,
fn COLON_all(&self) -> Vec<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
Retrieves all
TerminalNodes corresponding to token COLON in current ruleSource§fn COLON(
&self,
i: usize,
) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
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.fn hamelintype_all(&self) -> Vec<Rc<HamelintypeContextAll<'input>>>where
Self: Sized,
fn hamelintype(&self, i: usize) -> Option<Rc<HamelintypeContextAll<'input>>>where
Self: Sized,
Source§fn RCURLY(&self) -> Option<Rc<TerminalNode<'input, HamelinParserContextType>>>where
Self: Sized,
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 RCURLYSource§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, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for StructTypeContext<'input>
impl<'input, 'a> Visitable<dyn HamelinVisitor<'input> + 'a> for StructTypeContext<'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