Do not show tests in container completions

This commit is contained in:
Alexandros Naskos 2021-03-29 15:41:58 +03:00
parent bd3f0460ba
commit b417e64e10
No known key found for this signature in database
GPG Key ID: 02BF2E72B0EA32D2

View File

@ -2702,14 +2702,14 @@ fn makeScopeInternal(
);
const name = getDeclName(tree, decl) orelse continue;
if (try scopes.items[scope_idx].decls.fetchPut(name, .{ .ast_node = decl })) |existing| {
// TODO Record a redefinition error.
}
if (tags[decl] == .test_decl) {
try tests.append(allocator, decl);
continue;
}
if (try scopes.items[scope_idx].decls.fetchPut(name, .{ .ast_node = decl })) |existing| {
// TODO Record a redefinition error.
}
if (!can_have_enum_completions)
continue;