Skip to main content

AstGrep

Type Alias AstGrep 

Source
pub type AstGrep<D> = Root<D>;

Aliased Type§

pub struct AstGrep<D> { /* private fields */ }

Implementations§

Source§

impl<L: LanguageExt> AstGrep<StrDoc<L>>

Source

pub fn new<S: AsRef<str>>(src: S, lang: L) -> Self

Source

pub fn source(&self) -> &str

Source

pub fn generate(self) -> String