pub struct ProjectIndex<'a> { /* private fields */ }Implementations§
Source§impl<'a> ProjectIndex<'a>
impl<'a> ProjectIndex<'a>
Sourcepub fn from_loaded(
project_root: &Path,
loaded: Rc<dyn LoadedFileIndexes + 'a>,
workspace_crate_prefixes: WorkspaceCratePrefixCache,
facts: Rc<dyn ProjectFacts + 'a>,
) -> Self
pub fn from_loaded( project_root: &Path, loaded: Rc<dyn LoadedFileIndexes + 'a>, workspace_crate_prefixes: WorkspaceCratePrefixCache, facts: Rc<dyn ProjectFacts + 'a>, ) -> Self
An index whose every file index comes from loaded, on first use.
An index over bound surfaces another index or thread also holds.
Trait Implementations§
Source§impl<'a> Clone for ProjectIndex<'a>
impl<'a> Clone for ProjectIndex<'a>
Source§impl ResolverIndex for ProjectIndex<'_>
impl ResolverIndex for ProjectIndex<'_>
fn luau_config(&self, file: &str) -> Option<Arc<[u8]>>
fn macro_use_modules(&self, file: &str) -> Vec<String>
fn go_package_files( &self, caller_file: &str, module: Option<&str>, ) -> Vec<String>
fn uncached_go_package_files( &self, caller_file: &str, module: Option<&str>, ) -> Vec<String>
fn go_symbol_target( &self, caller_file: &str, module: Option<&str>, symbol: &str, ) -> Option<String>
fn caller_data(&self, file: &str) -> Option<&FileCallData>
fn local_symbol( &self, file: &str, data: &FileCallData, query: &str, ) -> Option<String>
fn lang_for(&self, file: &str) -> Option<LangId>
fn module_target(&self, caller_file: &str, module_path: &str) -> Option<String>
fn module_parent(&self, target_file: &str) -> Option<(String, String)>
fn rust_caller_module_segments(&self, caller_file: &str) -> Vec<String>
fn reexports_for(&self, file: &str) -> Vec<ReexportIndex>
fn node_for_symbol(&self, file: &str, symbol: &str) -> Option<String>
fn node_is_callable(&self, file: &str, node_id: &str) -> bool
fn export_alias(&self, file: &str, symbol: &str) -> Option<String>
fn has_export(&self, file: &str, symbol: &str) -> bool
fn default_export(&self, file: &str) -> Option<String>
fn contains_file(&self, file: &str) -> bool
fn crate_src_prefix(&self, crate_name: &str) -> Option<String>
fn rust_crate_root_file(&self, caller_file: &str) -> Option<String>
fn inline_scoped_target( &self, caller_file: &str, module_segments: &[String], short_name: &str, ) -> Option<(String, String)>
Source§fn rust_module_aliases(&self, data: &FileCallData) -> Rc<[RustModuleAliases]>
fn rust_module_aliases(&self, data: &FileCallData) -> Rc<[RustModuleAliases]>
The module names each
use in data binds, one entry per import in
order. Resolution asks for them once per qualified reference, so an
index that resolves one file’s references can keep them.Auto Trait Implementations§
impl<'a> !Freeze for ProjectIndex<'a>
impl<'a> !RefUnwindSafe for ProjectIndex<'a>
impl<'a> !Send for ProjectIndex<'a>
impl<'a> !Sync for ProjectIndex<'a>
impl<'a> !UnwindSafe for ProjectIndex<'a>
impl<'a> Forget for ProjectIndex<'a>
impl<'a> Move for ProjectIndex<'a>
impl<'a> Unpin for ProjectIndex<'a>
impl<'a> UnsafeUnpin for ProjectIndex<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.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