Struct rls_analysis::AnalysisHost [] [src]

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.

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.