[][src]Trait antlr_rust::rule_context::CustomRuleContext

pub trait CustomRuleContext<'input> {
    type TF: TokenFactory<'input> + 'input;
    type Ctx: ParserNodeType<'input, TF = Self::TF>;
    fn get_rule_index(&self) -> usize;

    fn get_alt_number(&self) -> isize { ... }
fn set_alt_number(&self, _alt_number: isize) { ... } }

Associated Types

type TF: TokenFactory<'input> + 'input

type Ctx: ParserNodeType<'input, TF = Self::TF>

Loading content...

Required methods

fn get_rule_index(&self) -> usize

Loading content...

Provided methods

fn get_alt_number(&self) -> isize

fn set_alt_number(&self, _alt_number: isize)

Loading content...

Implementors

impl<'a, TF: TokenFactory<'a> + 'a> CustomRuleContext<'a> for EmptyCustomRuleContext<'a, TF>[src]

type TF = TF

type Ctx = EmptyContextType<'a, TF>

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

type TF = Ctx::TF

type Ctx = Ctx::Ctx

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

type TF = ExtCtx::TF

type Ctx = ExtCtx::Ctx

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

type TF = Node::TF

type Ctx = Node

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

type TF = I::TF

type Ctx = I::Ctx

Loading content...