Merge pull request #71 from alexnask/test_block_completions
Test block local completions
This commit is contained in:
commit
44f33c631b
@ -524,6 +524,10 @@ pub fn declsFromIndexInternal(decls: *std.ArrayList(*ast.Node), tree: *ast.Tree,
|
|||||||
if (func.body_node) |body_node|
|
if (func.body_node) |body_node|
|
||||||
try declsFromIndexInternal(decls, tree, body_node);
|
try declsFromIndexInternal(decls, tree, body_node);
|
||||||
},
|
},
|
||||||
|
.TestDecl => {
|
||||||
|
const test_decl = node.cast(ast.Node.TestDecl).?;
|
||||||
|
try declsFromIndexInternal(decls, tree, test_decl.body_node);
|
||||||
|
},
|
||||||
.Block => {
|
.Block => {
|
||||||
var index: usize = 0;
|
var index: usize = 0;
|
||||||
while (node.iterate(index)) |inode| : (index += 1) {
|
while (node.iterate(index)) |inode| : (index += 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user