File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99; Method calls: obj.method(), self.foo()
1010(call_expression
1111 function: (field_expression
12- field: (field_identifier) @callee.name )) @call
12+ field: (field_identifier) @callee.name )) @method. call
1313
1414; Path calls: std: :fs: :read(), Vec: :new()
1515(call_expression
Original file line number Diff line number Diff line change @@ -112,9 +112,9 @@ fn extract_semantic_nodes(
112112 let start = Instant :: now ( ) ;
113113 #[ cfg( debug_assertions) ]
114114 {
115- PERF_STATS . lock ( ) . unwrap ( ) . extract_semantic_nodes_calls += 1 ;
116- PERF_STATS . lock ( ) . unwrap ( ) . max_depth_reached =
117- PERF_STATS . lock ( ) . unwrap ( ) . max_depth_reached . max ( depth) ;
115+ let mut stats = PERF_STATS . lock ( ) . unwrap ( ) ;
116+ stats . extract_semantic_nodes_calls += 1 ;
117+ stats . max_depth_reached = stats . max_depth_reached . max ( depth) ;
118118 }
119119
120120 const MAX_RECURSION_DEPTH : usize = 1024 ;
You can’t perform that action at this time.
0 commit comments