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

pub trait RuleContext {
    fn get_invoking_state(&self) -> isize;
fn set_invoking_state(&self, t: isize);
fn get_parent_ctx(&self) -> Option<Rc<dyn ParserRuleContext>>;
fn set_parent(&self, parent: &Option<Rc<dyn ParserRuleContext>>); fn is_empty(&self) -> bool { ... } }

Required methods

fn get_invoking_state(&self) -> isize

fn set_invoking_state(&self, t: isize)

fn get_parent_ctx(&self) -> Option<Rc<dyn ParserRuleContext>>

fn set_parent(&self, parent: &Option<Rc<dyn ParserRuleContext>>)

Loading content...

Provided methods

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

Loading content...

Implementors

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

impl<Ctx: CustomRuleContext> RuleContext for BaseRuleContext<Ctx>[src]

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

Loading content...