Merge pull request #18392 from Veykril/veykril/push-wktpkuklnzot
Swap query call order in `file_item_tree_query`
This commit is contained in:
commit
8cf856e476
@ -103,9 +103,8 @@ pub(crate) fn file_item_tree_query(db: &dyn DefDatabase, file_id: HirFileId) ->
|
|||||||
let _p = tracing::info_span!("file_item_tree_query", ?file_id).entered();
|
let _p = tracing::info_span!("file_item_tree_query", ?file_id).entered();
|
||||||
static EMPTY: OnceLock<Arc<ItemTree>> = OnceLock::new();
|
static EMPTY: OnceLock<Arc<ItemTree>> = OnceLock::new();
|
||||||
|
|
||||||
let syntax = db.parse_or_expand(file_id);
|
|
||||||
|
|
||||||
let ctx = lower::Ctx::new(db, file_id);
|
let ctx = lower::Ctx::new(db, file_id);
|
||||||
|
let syntax = db.parse_or_expand(file_id);
|
||||||
let mut top_attrs = None;
|
let mut top_attrs = None;
|
||||||
let mut item_tree = match_ast! {
|
let mut item_tree = match_ast! {
|
||||||
match syntax {
|
match syntax {
|
||||||
|
Loading…
Reference in New Issue
Block a user