pub struct Analyzer { /* private fields */ }Expand description
Analyzer for Thrift files.
Implementations§
Source§impl Analyzer
impl Analyzer
Sourcepub fn sync_document(&mut self, path: &str, content: &str)
pub fn sync_document(&mut self, path: &str, content: &str)
Sync a document.
Sourcepub fn remove_document(&mut self, path: &str)
pub fn remove_document(&mut self, path: &str)
Remove a document.
Sourcepub fn semantic_tokens(&self, path: &str) -> Option<&Vec<u32>>
pub fn semantic_tokens(&self, path: &str) -> Option<&Vec<u32>>
Get semantic tokens for a specific file.
Sourcepub fn semantic_token_types(&self) -> Vec<String>
pub fn semantic_token_types(&self) -> Vec<String>
Get the semantic token types.
Sourcepub fn semantic_token_modifiers(&self) -> Vec<String>
pub fn semantic_token_modifiers(&self) -> Vec<String>
Get the semantic token modifiers.
Sourcepub fn definition(&self, path: &str, pos: Position) -> Option<Location>
pub fn definition(&self, path: &str, pos: Position) -> Option<Location>
Get the definition at a specific position.
Sourcepub fn types_for_completion(&self, path: &str, pos: Position) -> Vec<String>
pub fn types_for_completion(&self, path: &str, pos: Position) -> Vec<String>
Get the types for completion.
Sourcepub fn includes_for_completion(&self, path: &str, _pos: Position) -> Vec<String>
pub fn includes_for_completion(&self, path: &str, _pos: Position) -> Vec<String>
Get the includes for completion.
Sourcepub fn keywords_for_completion(&self) -> Vec<String>
pub fn keywords_for_completion(&self) -> Vec<String>
Get the keywords for completion.
Auto Trait Implementations§
impl Freeze for Analyzer
impl !RefUnwindSafe for Analyzer
impl !Send for Analyzer
impl !Sync for Analyzer
impl Unpin for Analyzer
impl UnsafeUnpin for Analyzer
impl !UnwindSafe for Analyzer
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