pub struct LuaReferenceIndex { /* private fields */ }Implementations§
Source§impl LuaReferenceIndex
 
impl LuaReferenceIndex
pub fn new() -> Self
pub fn add_decl_reference( &mut self, decl_id: LuaDeclId, file_id: FileId, range: TextRange, is_write: bool, )
pub fn add_global_reference( &mut self, name: &str, file_id: FileId, syntax_id: LuaSyntaxId, )
pub fn add_index_reference( &mut self, key: LuaMemberKey, file_id: FileId, syntax_id: LuaSyntaxId, )
pub fn add_string_reference( &mut self, file_id: FileId, string: &str, range: TextRange, )
pub fn add_type_reference( &mut self, file_id: FileId, type_decl_id: LuaTypeDeclId, range: TextRange, )
pub fn get_local_reference(&self, file_id: &FileId) -> Option<&FileReference>
pub fn create_local_reference(&mut self, file_id: FileId)
pub fn get_decl_references( &self, file_id: &FileId, decl_id: &LuaDeclId, ) -> Option<&Vec<DeclReference>>
pub fn get_decl_references_map( &self, file_id: &FileId, ) -> Option<&HashMap<LuaDeclId, Vec<DeclReference>>>
pub fn get_global_file_references( &self, name: &str, file_id: FileId, ) -> Option<Vec<LuaSyntaxId>>
pub fn get_global_references( &self, name: &str, ) -> Option<Vec<InFiled<LuaSyntaxId>>>
pub fn get_index_references( &self, key: &LuaMemberKey, ) -> Option<Vec<InFiled<LuaSyntaxId>>>
pub fn get_string_references( &self, string_value: &str, ) -> Vec<InFiled<TextRange>>
pub fn get_type_references( &self, type_decl_id: &LuaTypeDeclId, ) -> Option<Vec<InFiled<TextRange>>>
Trait Implementations§
Source§impl Debug for LuaReferenceIndex
 
impl Debug for LuaReferenceIndex
Auto Trait Implementations§
impl Freeze for LuaReferenceIndex
impl RefUnwindSafe for LuaReferenceIndex
impl Send for LuaReferenceIndex
impl Sync for LuaReferenceIndex
impl Unpin for LuaReferenceIndex
impl UnwindSafe for LuaReferenceIndex
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> 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