Fixed slice access type resolution
This commit is contained in:
12
src/main.zig
12
src/main.zig
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user