Skip to content

Commit 7262b27

Browse files
committed
fix: comment in scope tests, remove dbg!
1 parent c3d497c commit 7262b27

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lsp/src/treesitter/scope.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,12 @@ fn second_function() -> u32 {
238238

239239
#[test]
240240
fn test_number_of_scopes() {
241-
let graph = dbg!(return_scope_graph());
241+
let graph = return_scope_graph();
242242

243-
// 6 scopes: 0 -- root, 1 -- function `first_function`, 2 - block_expr of first_function,
243+
// 6 scopes:
244+
// 0 - program scope
245+
// 1 - first_function, 2 - first_function block, 3 - nested block
246+
// 4 - second_function, 5 - second_function block
244247
assert_eq!(graph.scopes.len(), 6, "Expected exactly 6 scopes");
245248
}
246249

0 commit comments

Comments
 (0)