pub struct EmmyLuaAnalysis {
    pub compilation: LuaCompilation,
    pub diagnostic: LuaDiagnostic,
    pub emmyrc: Arc<Emmyrc>,
    /* private fields */
}Fields§
§compilation: LuaCompilation§diagnostic: LuaDiagnostic§emmyrc: Arc<Emmyrc>Implementations§
Source§impl EmmyLuaAnalysis
 
impl EmmyLuaAnalysis
pub fn new() -> Self
pub fn init_std_lib(&mut self, create_resources_dir: Option<String>)
pub fn get_file_id(&self, uri: &Uri) -> Option<FileId>
pub fn get_uri(&self, file_id: FileId) -> Option<Uri>
pub fn add_main_workspace(&mut self, root: PathBuf)
pub fn add_library_workspace(&mut self, root: PathBuf)
pub fn update_file_by_uri( &mut self, uri: &Uri, text: Option<String>, ) -> Option<FileId>
pub fn update_file_by_path( &mut self, path: &PathBuf, text: Option<String>, ) -> Option<FileId>
pub fn update_files_by_uri( &mut self, files: Vec<(Uri, Option<String>)>, ) -> Vec<FileId>
pub fn remove_file_by_uri(&mut self, uri: &Uri) -> Option<FileId>
pub fn update_files_by_path( &mut self, files: Vec<(PathBuf, Option<String>)>, ) -> Vec<FileId>
pub fn update_config(&mut self, config: Arc<Emmyrc>)
pub fn get_emmyrc(&self) -> Arc<Emmyrc>
pub fn diagnose_file( &self, file_id: FileId, cancel_token: CancellationToken, ) -> Option<Vec<Diagnostic>>
pub fn reindex(&mut self)
Sourcepub fn cleanup_nonexistent_files(&mut self)
 
pub fn cleanup_nonexistent_files(&mut self)
清理文件系统中不再存在的文件
Trait Implementations§
Source§impl Debug for EmmyLuaAnalysis
 
impl Debug for EmmyLuaAnalysis
impl Send for EmmyLuaAnalysis
impl Sync for EmmyLuaAnalysis
Auto Trait Implementations§
impl Freeze for EmmyLuaAnalysis
impl !RefUnwindSafe for EmmyLuaAnalysis
impl Unpin for EmmyLuaAnalysis
impl !UnwindSafe for EmmyLuaAnalysis
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