aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-03 16:17:38 +0000
committerGitHub <[email protected]>2020-03-03 16:17:38 +0000
commit674770ef0473cf938d734f54bcf33524d9fdf5f8 (patch)
tree6af966f1457414c36424d5016970710b46ece7a6 /crates/ra_ide/src
parent9451d9f05b035dea9795bb35a72e4bb8841066ac (diff)
parent2ff2c29a1e6f93495a40b57044678346531045ae (diff)
Merge #3422
3422: Add profile call r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide/src')
-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