aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-03 15:30:29 +0000
committerAleksey Kladov <[email protected]>2020-03-03 16:11:25 +0000
commit2ff2c29a1e6f93495a40b57044678346531045ae (patch)
treeb581604b91f8f5b539128c996eb3f4f0bc43fe47 /crates
parent077f8ac02cc732e2e14592fd48891c2a1eabbc25 (diff)
Add profile call
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide/src/references.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_ide/src/references.rs b/crates/ra_ide/src/references.rs
index 2eb047c96..9b0785e1d 100644
--- a/crates/ra_ide/src/references.rs
+++ b/crates/ra_ide/src/references.rs
@@ -114,6 +114,7 @@ pub(crate) fn find_all_refs(
114 position: FilePosition, 114 position: FilePosition,
115 search_scope: Option<SearchScope>, 115 search_scope: Option<SearchScope>,
116) -> Option<RangeInfo<ReferenceSearchResult>> { 116) -> Option<RangeInfo<ReferenceSearchResult>> {
117 let _p = profile("find_all_refs");
117 let sema = Semantics::new(db); 118 let sema = Semantics::new(db);
118 let syntax = sema.parse(position.file_id).syntax().clone(); 119 let syntax = sema.parse(position.file_id).syntax().clone();
119 120