diff --git a/src/analysis.zig b/src/analysis.zig index 94d497d..4580f9b 100644 --- a/src/analysis.zig +++ b/src/analysis.zig @@ -366,20 +366,6 @@ pub fn isPublic(tree: *ast.Tree, node: *ast.Node) bool { return false; } -pub fn getCompletionsFromNode(allocator: *std.mem.Allocator, tree: *ast.Tree, node: *ast.Node) ![]*ast.Node { - var nodes = std.ArrayList(*ast.Node).init(allocator); - - var index: usize = 0; - while (node.iterate(index)) |child_node| { - if (isPublic(tree, node)) - try nodes.append(child_node); - - index += 1; - } - - return nodes.items; -} - pub fn nodeToString(tree: *ast.Tree, node: *ast.Node) ?[]const u8 { switch (node.id) { .ContainerField => {