mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
make Parse fields private
this is in preparation for the new rowan API
This commit is contained in:
parent
2e466bb365
commit
deab4caa7b
31 changed files with 109 additions and 99 deletions
|
@ -22,8 +22,8 @@ pub enum RunnableKind {
|
|||
}
|
||||
|
||||
pub(crate) fn runnables(db: &RootDatabase, file_id: FileId) -> Vec<Runnable> {
|
||||
let source_file = db.parse(file_id).tree;
|
||||
source_file.syntax().descendants().filter_map(|i| runnable(db, file_id, i)).collect()
|
||||
let parse = db.parse(file_id);
|
||||
parse.tree().syntax().descendants().filter_map(|i| runnable(db, file_id, i)).collect()
|
||||
}
|
||||
|
||||
fn runnable(db: &RootDatabase, file_id: FileId, item: &SyntaxNode) -> Option<Runnable> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue