[][src]Trait lark_parser::ParserDatabaseExt

pub trait ParserDatabaseExt: ParserDatabase {
    fn init_parser_db(&mut self) { ... }
fn add_file(
        &mut self,
        path: impl IntoFileName,
        contents: impl Into<Text>
    ) { ... }
fn top_level_entities_in_file(
        &self,
        file: impl IntoFileName
    ) -> Seq<Entity> { ... } }

Provided methods

fn init_parser_db(&mut self)

fn add_file(
    &mut self,
    path: impl IntoFileName,
    contents: impl Into<Text>
)

fn top_level_entities_in_file(
    &self,
    file: impl IntoFileName
) -> Seq<Entity>

Returns the "top-level" entities defined in the given file -- does not descend to visit the children of those entities etc.

Loading content...

Implementors

Loading content...