pub struct DjangoParser<'config> { /* private fields */ }Expand description
Django 模板解析器
Implementations§
Source§impl<'config> DjangoParser<'config>
impl<'config> DjangoParser<'config>
pub fn new(config: &'config DjangoLanguage) -> Self
Trait Implementations§
Source§impl<'config> Clone for DjangoParser<'config>
impl<'config> Clone for DjangoParser<'config>
Source§impl<'config> Parser<DjangoLanguage> for DjangoParser<'config>
impl<'config> Parser<DjangoLanguage> for DjangoParser<'config>
Source§fn parse_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, DjangoLanguage>,
) -> OakDiagnostics<Arc<GreenNode<DjangoSyntaxKind>>>
fn parse_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, DjangoLanguage>, ) -> OakDiagnostics<Arc<GreenNode<DjangoSyntaxKind>>>
Parses source text incrementally using an existing cache. Read more
Source§fn parse(
&self,
text: impl Source,
) -> OakDiagnostics<Arc<GreenNode<<L as Language>::SyntaxKind>>>
fn parse( &self, text: impl Source, ) -> OakDiagnostics<Arc<GreenNode<<L as Language>::SyntaxKind>>>
Parses source text into a kind tree. Read more
Auto Trait Implementations§
impl<'config> Freeze for DjangoParser<'config>
impl<'config> RefUnwindSafe for DjangoParser<'config>
impl<'config> Send for DjangoParser<'config>
impl<'config> Sync for DjangoParser<'config>
impl<'config> Unpin for DjangoParser<'config>
impl<'config> UnwindSafe for DjangoParser<'config>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more