Struct rls_analysis::AnalysisHost []

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

Methods

impl AnalysisHost<CargoAnalysisLoader>
[src]

impl<L: AnalysisLoader> AnalysisHost<L>
[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.

Note that self.has_def == true =/> self.goto_def.is_some(), since if the def is in an api crate, there is no reasonable span to jump to.

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

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

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

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

Trait Implementations

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

Formats the value using the given formatter.