mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
nail down runnables
This commit is contained in:
parent
1329dd4e28
commit
e98d8cd255
8 changed files with 142 additions and 25 deletions
|
@ -182,8 +182,11 @@ impl Analysis {
|
|||
pub fn parent_module(&self, file_id: FileId) -> Vec<(FileId, FileSymbol)> {
|
||||
self.imp.parent_module(file_id)
|
||||
}
|
||||
pub fn crate_root(&self, file_id: FileId) -> Vec<CrateId> {
|
||||
self.imp.crate_root(file_id)
|
||||
pub fn crate_for(&self, file_id: FileId) -> Vec<CrateId> {
|
||||
self.imp.crate_for(file_id)
|
||||
}
|
||||
pub fn crate_root(&self, crate_id: CrateId) -> FileId {
|
||||
self.imp.crate_root(crate_id)
|
||||
}
|
||||
pub fn runnables(&self, file_id: FileId) -> Vec<Runnable> {
|
||||
let file = self.file_syntax(file_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue