Struct gearley::recognizer::Completion [] [src]

pub struct Completion<'c, 'f, 'g, 'r, F> where F: Forest<'f> + 'f, 'f: 'r, 'g: 'r, 'r: 'c {
    // some fields omitted
}

A group of completed items.

Methods

impl<'c, 'f, 'g, 'r, F> Completion<'c, 'f, 'g, 'r, F> where F: Forest<'f> + 'f, 'f: 'r, 'g: 'r, 'r: 'c

fn complete_all(&mut self) -> F::NodeRef

Completes all items.

fn next(&mut self) -> Option<CompletedItem<F::NodeRef>>

Allows iteration through completed items.

fn push(&mut self, completed_item: CompletedItem<F::NodeRef>)

Includes an item in the completion.

fn complete(&mut self) -> F::NodeRef

Uses the completion to complete items in the recognizer.

fn origin(&self) -> Origin

Returns the origin location of this completion.

fn symbol(&self) -> Symbol

Returns the symbol of this completion.