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.

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.