Struct rls_analysis::AnalysisHost [] [src]

pub struct AnalysisHost<L: AnalysisLoader = CargoAnalysisLoader> { /* fields omitted */ }

Methods

impl AnalysisHost<CargoAnalysisLoader>
[src]

[src]

impl<L: AnalysisLoader> AnalysisHost<L>
[src]

[src]

[src]

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.

[src]

[src]

[src]

Reloads the entire project's analysis data.

[src]

[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.

[src]

[src]

[src]

[src]

[src]

Returns the name of each crate in the program and the id of the root module of that crate.

[src]

[src]

Like id, but will only return a value if it is in the same crate as span.

[src]

[src]

[src]

[src]

[src]

Search for a symbol name, returns a list of spans matching defs and refs for that name.

[src]

[src]

[src]

Search for a symbol name, returning a list of def_ids for that name.

[src]

[src]

[src]

Trait Implementations

impl<L: Debug + AnalysisLoader> Debug for AnalysisHost<L>
[src]

[src]

Formats the value using the given formatter.