Fixed slice access type resolution

This commit is contained in:
Alexandros Naskos
2020-07-23 21:33:43 +03:00
parent 8ddd80b788
commit e7a1f5c34f
2 changed files with 26 additions and 49 deletions

View File

@@ -451,18 +451,6 @@ fn nodeToCompletion(
.kind = .Field,
});
},
.ContainerDecl => {
log(std.log.Level.debug, .cont, "Unhandled container decl", .{});
const container = node.castTag(.ContainerDecl).?;
for (container.fieldsAndDecls()) |snode|
if (snode.castTag(.ContainerField)) |field|
try list.append(.{
.label = handle.tree.tokenSlice(field.name_token),
.kind = .Field,
.documentation = doc,
.detail = analysis.getContainerFieldSignature(handle.tree, field),
});
},
else => if (analysis.nodeToString(handle.tree, node)) |string| {
try list.append(.{
.label = string,