Skip to content

Commit 0ffca37

Browse files
committed
fix: unblock native parser and call graph tests
1 parent 55d9ae2 commit 0ffca37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

native/queries/rust-calls.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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

native/src/parser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)