pub struct TreeSitterProvider { /* private fields */ }Expand description
Provider that uses tree-sitter for real symbol extraction.
Implements the LanguageProvider trait from language.rs.
Implementations§
Source§impl TreeSitterProvider
impl TreeSitterProvider
Sourcepub fn with_symbol_cache(symbol_cache: SharedSymbolCache) -> Self
pub fn with_symbol_cache(symbol_cache: SharedSymbolCache) -> Self
Create a new TreeSitterProvider backed by a shared symbol cache.
Sourcepub fn symbol_cache_len(&self) -> usize
pub fn symbol_cache_len(&self) -> usize
Return shared symbol cache entries for status reporting.
Sourcepub fn symbol_cache(&self) -> SharedSymbolCache
pub fn symbol_cache(&self) -> SharedSymbolCache
Shared symbol cache backing this provider.
Trait Implementations§
Source§impl LanguageProvider for TreeSitterProvider
impl LanguageProvider for TreeSitterProvider
Auto Trait Implementations§
impl !Freeze for TreeSitterProvider
impl !RefUnwindSafe for TreeSitterProvider
impl Send for TreeSitterProvider
impl !Sync for TreeSitterProvider
impl Unpin for TreeSitterProvider
impl UnsafeUnpin for TreeSitterProvider
impl UnwindSafe for TreeSitterProvider
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more