Skip to content

Commit c3d497c

Browse files
committed
fix: uncorrect type in arrays
1 parent 94eafbf commit c3d497c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp/src/treesitter/variable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn parse_assignment(text: &str, node: &Node, ty: &Node) -> Option<Vec<Variab
4343
stack.extend(
4444
pattern
4545
.named_children(&mut pattern.walk())
46-
.zip(std::iter::repeat(ty)),
46+
.zip(std::iter::repeat(ty.named_child(0)?)),
4747
);
4848
}
4949
("ignore_pattern", _) => {}

0 commit comments

Comments
 (0)