We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dce17e commit 24c5602Copy full SHA for 24c5602
crates/roughly/src/definition.rs
@@ -35,8 +35,7 @@ pub fn goto(
35
)));
36
}
37
38
- let is_local_scope = std::iter::successors(Some(start), |node| node.parent())
39
- .any(|node| node.kind_id() == kind::FUNCTION_DEFINITION);
+ let is_local_scope = tree::find_containing_function(start).is_some();
40
41
let globals = symbols_map.filter_map(
42
|path, symbols| {
0 commit comments