Skip to content

Commit 2032df1

Browse files
committed
Clearer fallthrough
1 parent 5ec2eed commit 2032df1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/ark/src/lsp/indexer.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ fn index_assignment(
255255
if crate::treesitter::node_is_call(&rhs, "R6Class", contents) ||
256256
crate::treesitter::node_is_namespaced_call(&rhs, "R6", "R6Class", contents)
257257
{
258-
index_r6_class(path, contents, &rhs, entries)?;
258+
index_r6_class_methods(path, contents, &rhs, entries)?;
259+
// Fallthrough to index the variable to which the R6 class is assigned
259260
}
260261

261262
let lhs_text = contents.node_slice(&lhs)?.to_string();
@@ -309,7 +310,7 @@ fn index_assignment(
309310
Ok(())
310311
}
311312

312-
fn index_r6_class(
313+
fn index_r6_class_methods(
313314
_path: &Path,
314315
contents: &Rope,
315316
node: &Node,

0 commit comments

Comments
 (0)