Skip to main content

LanguageFrontend

Trait LanguageFrontend 

Source
pub trait LanguageFrontend {
    // Required method
    fn parse(&self, path: &Path, source: &str) -> Result<ParseOutput>;
}
Expand description

Trait that all language frontends implement.

A frontend takes a file path + source code and produces GIR nodes and edges.

Required Methods§

Source

fn parse(&self, path: &Path, source: &str) -> Result<ParseOutput>

Implementors§