Skip to main content

ResolverIndex

Trait ResolverIndex 

Source
pub trait ResolverIndex {
Show 22 methods // Required methods 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 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 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)>; // Provided methods 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 rust_caller_module_segments(&self, caller_file: &str) -> Vec<String> { ... } fn rust_module_aliases( &self, data: &FileCallData, ) -> Rc<[RustModuleAliases]> { ... }
}
Expand description

Resolution reads symbols and exports through one interface. Incremental refreshes use the in-memory index, while cold builds query only the rows needed by the active caller from SQLite.

Required Methods§

Source

fn luau_config(&self, file: &str) -> Option<Arc<[u8]>>

Source

fn macro_use_modules(&self, file: &str) -> Vec<String>

Source

fn go_package_files( &self, caller_file: &str, module: Option<&str>, ) -> Vec<String>

Source

fn caller_data(&self, file: &str) -> Option<&FileCallData>

Source

fn local_symbol( &self, file: &str, data: &FileCallData, query: &str, ) -> Option<String>

Source

fn lang_for(&self, file: &str) -> Option<LangId>

Source

fn module_target(&self, caller_file: &str, module_path: &str) -> Option<String>

Source

fn module_parent(&self, target_file: &str) -> Option<(String, String)>

Source

fn reexports_for(&self, file: &str) -> Vec<ReexportIndex>

Source

fn node_for_symbol(&self, file: &str, symbol: &str) -> Option<String>

Source

fn node_is_callable(&self, file: &str, node_id: &str) -> bool

Source

fn export_alias(&self, file: &str, symbol: &str) -> Option<String>

Source

fn has_export(&self, file: &str, symbol: &str) -> bool

Source

fn default_export(&self, file: &str) -> Option<String>

Source

fn contains_file(&self, file: &str) -> bool

Source

fn crate_src_prefix(&self, crate_name: &str) -> Option<String>

Source

fn rust_crate_root_file(&self, caller_file: &str) -> Option<String>

Source

fn inline_scoped_target( &self, caller_file: &str, module_segments: &[String], short_name: &str, ) -> Option<(String, String)>

Provided Methods§

Source

fn uncached_go_package_files( &self, caller_file: &str, module: Option<&str>, ) -> Vec<String>

Source

fn go_symbol_target( &self, caller_file: &str, module: Option<&str>, symbol: &str, ) -> Option<String>

Source

fn rust_caller_module_segments(&self, caller_file: &str) -> Vec<String>

Source

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§