mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Add profile call
This commit is contained in:
parent
077f8ac02c
commit
2ff2c29a1e
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ pub(crate) fn find_all_refs(
|
||||||
position: FilePosition,
|
position: FilePosition,
|
||||||
search_scope: Option<SearchScope>,
|
search_scope: Option<SearchScope>,
|
||||||
) -> Option<RangeInfo<ReferenceSearchResult>> {
|
) -> Option<RangeInfo<ReferenceSearchResult>> {
|
||||||
|
let _p = profile("find_all_refs");
|
||||||
let sema = Semantics::new(db);
|
let sema = Semantics::new(db);
|
||||||
let syntax = sema.parse(position.file_id).syntax().clone();
|
let syntax = sema.parse(position.file_id).syntax().clone();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue