pub struct EmmyLuaAnalysis {
pub compilation: LuaCompilation,
pub diagnostic: LuaDiagnostic,
pub emmyrc: Arc<Emmyrc>,
}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, allow_create_resources_dir: bool)
pub fn get_file_id(&self, uri: &Uri) -> Option<FileId>
pub fn get_uri(&self, file_id: FileId) -> Option<Uri>
pub fn add_workspace_root(&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 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 async fn diagnose_file( &self, file_id: FileId, cancel_token: CancellationToken, ) -> Option<Vec<Diagnostic>>
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