[−][src]Struct rls_analysis::AnalysisHost
Methods
impl AnalysisHost<CargoAnalysisLoader>
[src]
pub fn new(target: Target) -> AnalysisHost
[src]
impl<L: AnalysisLoader> AnalysisHost<L>
[src]
pub fn new_with_loader(loader: L) -> Self
[src]
pub fn reload_from_analysis(
&self,
analysis: Vec<Analysis>,
path_prefix: &Path,
base_dir: &Path,
blacklist: &[impl AsRef<str> + Debug]
) -> AResult<()>
[src]
&self,
analysis: Vec<Analysis>,
path_prefix: &Path,
base_dir: &Path,
blacklist: &[impl AsRef<str> + Debug]
) -> AResult<()>
Reloads given data passed in analysis
. This will first check and read
on-disk data (just like reload
). It then imports the data we're
passing in directly.
pub fn reload(&self, path_prefix: &Path, base_dir: &Path) -> AResult<()>
[src]
pub fn reload_with_blacklist(
&self,
path_prefix: &Path,
base_dir: &Path,
blacklist: &[impl AsRef<str> + Debug]
) -> AResult<()>
[src]
&self,
path_prefix: &Path,
base_dir: &Path,
blacklist: &[impl AsRef<str> + Debug]
) -> AResult<()>
pub fn hard_reload(&self, path_prefix: &Path, base_dir: &Path) -> AResult<()>
[src]
Reloads the entire project's analysis data.
pub fn hard_reload_with_blacklist(
&self,
path_prefix: &Path,
base_dir: &Path,
blacklist: &[impl AsRef<str> + Debug]
) -> AResult<()>
[src]
&self,
path_prefix: &Path,
base_dir: &Path,
blacklist: &[impl AsRef<str> + Debug]
) -> AResult<()>
pub fn has_def(&self, id: Id) -> bool
[src]
Note that self.has_def()
=/> self.goto_def().is_ok()
, since if the
Def is in an api crate, there is no reasonable Span to jump to.
pub fn get_def(&self, id: Id) -> AResult<Def>
[src]
pub fn goto_def(&self, span: &Span) -> AResult<Span>
[src]
pub fn for_each_child_def<F, T>(&self, id: Id, f: F) -> AResult<Vec<T>> where
F: FnMut(Id, &Def) -> T,
[src]
F: FnMut(Id, &Def) -> T,
pub fn def_parents(&self, id: Id) -> AResult<Vec<(Id, String)>>
[src]
pub fn def_roots(&self) -> AResult<Vec<(Id, String)>>
[src]
Returns the name of each crate in the program and the id of the root module of that crate.
pub fn id(&self, span: &Span) -> AResult<Id>
[src]
pub fn crate_local_id(&self, span: &Span) -> AResult<Id>
[src]
Like id, but will only return a value if it is in the same crate as span.
pub fn find_all_refs(
&self,
span: &Span,
include_decl: bool,
force_unique_spans: bool
) -> AResult<Vec<Span>>
[src]
&self,
span: &Span,
include_decl: bool,
force_unique_spans: bool
) -> AResult<Vec<Span>>
pub fn show_type(&self, span: &Span) -> AResult<String>
[src]
pub fn docs(&self, span: &Span) -> AResult<String>
[src]
pub fn matching_defs(&self, stem: &str) -> AResult<Vec<Def>>
[src]
Finds Defs with names that starting with (ignoring case) stem
pub fn query_defs(&self, query: SymbolQuery) -> AResult<Vec<Def>>
[src]
pub fn search(&self, name: &str) -> AResult<Vec<Span>>
[src]
Search for a symbol name, returns a list of spans matching defs and refs for that name.
pub fn find_all_refs_by_id(&self, id: Id) -> AResult<Vec<Span>>
[src]
pub fn find_impls(&self, id: Id) -> AResult<Vec<Span>>
[src]
pub fn search_for_id(&self, name: &str) -> AResult<Vec<Id>>
[src]
Search for a symbol name, returning a list of def_ids for that name.
pub fn symbols(&self, file_name: &Path) -> AResult<Vec<SymbolResult>>
[src]
pub fn doc_url(&self, span: &Span) -> AResult<String>
[src]
pub fn src_url(&self, span: &Span) -> AResult<String>
[src]
Auto Trait Implementations
impl<L> Send for AnalysisHost<L> where
L: Send,
L: Send,
impl<L> Unpin for AnalysisHost<L> where
L: Unpin,
L: Unpin,
impl<L> Sync for AnalysisHost<L> where
L: Send,
L: Send,
impl<L> RefUnwindSafe for AnalysisHost<L>
impl<L> UnwindSafe for AnalysisHost<L>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,