소스 검색

[display] don't explore related fields if we don't care anyway

see #9095
Simon Krajewski 5 년 전
부모
커밋
0545ce1101
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/context/display/statistics.ml

+ 1 - 1
src/context/display/statistics.ml

@@ -101,7 +101,7 @@ let collect_statistics ctx pfilter with_expressions =
 		let p' = patch_string_pos p cf.cf_name in
 		add_relation cf.cf_name_pos (Referenced,p');
 		(* extend to related classes for instance fields *)
-		match co with
+		if check_pos cf.cf_name_pos then match co with
 		| Some c ->
 			let id = (c.cl_path,cf.cf_name) in
 			begin try