[][src]Trait antlr_rust::rule_context::RuleContext

pub trait RuleContext<'input>: CustomRuleContext<'input> {
    fn get_invoking_state(&self) -> isize { ... }
fn set_invoking_state(&self, t: isize) { ... }
fn is_empty(&self) -> bool { ... }
fn get_parent_ctx(
        &self
    ) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>> { ... }
fn set_parent(
        &self,
        parent: &Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
    ) { ... } }

Provided methods

fn get_invoking_state(&self) -> isize

fn set_invoking_state(&self, t: isize)

fn is_empty(&self) -> bool

A context is empty if there is no invoking state; meaning nobody called current context. Which is usually true for the root of the syntax tree

fn get_parent_ctx(
    &self
) -> Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>

fn set_parent(
    &self,
    parent: &Option<Rc<<Self::Ctx as ParserNodeType<'input>>::Type>>
)

Loading content...

Implementors

impl<'input, Ctx: CustomRuleContext<'input>> RuleContext<'input> for BaseParserRuleContext<'input, Ctx>[src]

impl<'input, ExtCtx: CustomRuleContext<'input>> RuleContext<'input> for BaseRuleContext<'input, ExtCtx>[src]

impl<'input, Node: ParserNodeType<'input>, T: 'static> RuleContext<'input> for LeafNode<'input, Node, T>[src]

impl<'input, T, I: ?Sized> RuleContext<'input> for T where
    T: DerefSeal<Target = I> + 'input + Debug + Tid<'input>,
    I: ParserRuleContext<'input> + 'input, 
[src]

Loading content...